File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ int get_id_by_overlay(QString foverlay){
137137 return ISOMETRIC;
138138 } else if (strcmp (overlay, " music" ) == 0 ) {
139139 return MUSIC;
140- } else if (strcmp (overlay, " music " ) == 0 ) {
140+ } else if (strcmp (overlay, " custom " ) == 0 ) {
141141 return CUSTOM;
142142 }
143143 // Unknown overlay
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ class PageStorage {
206206 cfg += " ratio=" +QString::number (board->ratios [i])+" \n " ;
207207 cfg += " rotate=" +QString::number (board->rotates [i])+" \n " ;
208208 cfg += " page=" +get_overlay_by_id (loadValue (i).pageType )+" \n " ;
209- archive_add (QString::number (i)+" /background" , values[i]. loadValue (- 1 ));
209+ archive_add (QString::number (i)+" /background" , drawing-> getOverlay (i ));
210210 for (int j=1 +loadValue (i).removed ;j<=loadValue (i).image_count ;j++){
211211 archive_add (QString::number (i)+" /" +QString::number (j-1 -loadValue (i).removed ), values[i].loadValue (j));
212212 }
@@ -225,7 +225,7 @@ class PageStorage {
225225 QImage image = it.value ();
226226 int page = parts[0 ].toInt ();
227227 if (path.endsWith (" background" )){
228- values[page]. saveValue (- 1 , image );
228+ drawing-> setOverlay (image, page );
229229 printf (" Load: page bg: %d\n " , page);
230230 continue ;
231231 }
You can’t perform that action at this time.
0 commit comments