Changes between Version 6 and Version 7 of Docs/825gen2/Dev/UpdatingLegacyAppsToNewLook
- Timestamp:
- 02/08/24 11:44:00 (10 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/825gen2/Dev/UpdatingLegacyAppsToNewLook
v6 v7 5 5 Otherwise, the follow the below steps. 6 6 1. 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 8 2. Copy code for main screen features such as below: 22 9 23 10 {{{ … … 141 128 }}} 142 129 130 3. Find the InitLCD function call and change as follows: 131 132 {{{ 133 void 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 143 155 4. Modify functions that do display operations such as shown: 144 156