Skip to content

Commit d879616

Browse files
author
Steffen
committed
Add additional screen updates to address issues with color eInk
1 parent 8fa9788 commit d879616

File tree

5 files changed

+7
-17
lines changed

5 files changed

+7
-17
lines changed

ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22

33
## Nightly
44

5+
### Added
6+
* Extra screen updates to address refresh problems with color eInk screens
7+
58
### Changed
69
* *Mosaic*: Simplify color palette
710
* *Mosaic*: Add option to disable grey-out of unfinished hints
811
* Make app backwards-compatible with Firmware V5
12+
* Removed unused "Game solved" message box
913

1014
## 0.8.2 - 2025/08/08
1115

frontend/chooser.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ void chooserScreenShow() {
267267
chooserDrawMenu();
268268
chooserDrawChooserButtons(ca.current_chooserpage);
269269
chooserDrawControlButtons(ca.current_chooserpage);
270+
SoftUpdate();
270271
FullUpdate();
271272
}
272273

frontend/game.c

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,6 @@ void gameRelease(int x, int y) {
609609
}
610610
}
611611
gameDrawFurniture();
612-
if (!fe->with_statusbar) checkGameEnd();
613612
}
614613

615614
void gamePrev() {
@@ -714,21 +713,6 @@ static void gameSetupControlButtons() {
714713
}
715714
}
716715

717-
static void checkGameEnd() {
718-
int status;
719-
if (!fe->finished) {
720-
status = midend_status(me);
721-
if (status == 1) {
722-
Message(ICON_INFORMATION, "", "Puzzle is solved!", 2000);
723-
fe->finished = true;
724-
}
725-
else if (status == -1) {
726-
Message(ICON_WARNING, "", "Puzzle is lost!", 2000);
727-
fe->finished = true;
728-
}
729-
}
730-
}
731-
732716
void gamePrepareFrontend() {
733717
fe->current_pointer = 0;
734718
fe->pointerdown_x = 0;
@@ -936,6 +920,7 @@ void gameScreenShow() {
936920
gameDrawControlButtons();
937921
gameDrawStatusBar();
938922
ink_status_bar(NULL, midend_get_statustext(me));
923+
SoftUpdate();
939924
FullUpdate();
940925
}
941926

frontend/param.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,7 @@ void paramScreenShow() {
422422
paramDrawMenu();
423423
paramDrawPanel(false);
424424
paramDrawParams();
425+
SoftUpdate();
425426
FullUpdate();
426427
}
427428

include/frontend/game.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ static void gameDrawMenu();
119119
static void gameDrawControlButtons();
120120
static void gameDrawStatusBar();
121121

122-
static void checkGameEnd();
123122
static bool coord_in_gamecanvas(int x, int y);
124123
void gamePrepareFrontend();
125124
static BUTTON gameGetButton(const char *gameName, char key);

0 commit comments

Comments
 (0)