Changes between Version 6 and Version 7 of Docs/825gen2/Dev/UpdatingLegacyAppsToNewLook


Ignore:
Timestamp:
02/08/24 11:44:00 (10 months ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/825gen2/Dev/UpdatingLegacyAppsToNewLook

    v6 v7  
    55Otherwise, the follow the below steps.
    661. Copy the files apphelpers.cpp, apphelpers.h, and appinfo.h from one of the new standard projects such as ID storage into the project to update.
    7 2. Find the InitLCD function call and change as follows:
    8 {{{
    9 void IndStartup(void) {
    10 #if ARM64
    11         InitLCD(DSP_INIT_NEW_STYLE_APP);
    12 #else
    13         InitLCD();
    14 #endif
    15 // .. Additional code
    16 
    17 }
    18 
    19 }}}
    20 
    21 3. Copy code for main screen features such as below:
     7
     82. Copy code for main screen features such as below:
    229
    2310{{{
     
    141128}}}
    142129
     1303. Find the InitLCD function call and change as follows:
     131
     132{{{
     133void IndStartup(void) {
     134#if ARM64
     135        InitLCD(DSP_INIT_NEW_STYLE_APP);
     136
     137        dspMain.SetZoomWidth(0, dspMain.GetZoomWidth(1));
     138        if(dsp_height > 800) {
     139                dspMain.SetZoomHeight(0, (int)(dspMain.GetZoomHeight(1) * 0.84));
     140        }
     141
     142        InitFonts();
     143
     144        SetupDisplayLocations();
     145
     146#else
     147        InitLCD();
     148#endif
     149// .. Additional code
     150
     151}
     152
     153}}}
     154
    1431554. Modify functions that do display operations such as shown:
    144156