Skip to content

Commit 68eb83d

Browse files
Fix journal highlighting (#897)
* Fix journal highlighting * Cleanup :D
1 parent a9b13d5 commit 68eb83d

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

game/ui/gamemenu.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,9 @@ struct GameMenu::ListContentDialog : Dialog {
5050
}
5151
if(e.key==Event::K_W || e.key==Event::K_Up) {
5252
onMove(-1);
53-
update();
5453
}
5554
if(e.key==Event::K_S || e.key==Event::K_Down) {
5655
onMove(+1);
57-
update();
5856
}
5957
}
6058

@@ -141,11 +139,9 @@ struct GameMenu::ListViewDialog : Dialog {
141139
}
142140
if(e.key==Event::K_W || e.key==Event::K_Up) {
143141
onMove(-1);
144-
update();
145142
}
146143
if(e.key==Event::K_S || e.key==Event::K_Down) {
147144
onMove(+1);
148-
update();
149145
}
150146
}
151147

@@ -163,6 +159,7 @@ struct GameMenu::ListViewDialog : Dialog {
163159
if(list.value+1<int(num))
164160
list.value++;
165161
}
162+
update();
166163
}
167164

168165
void paintEvent (PaintEvent&) override {}

0 commit comments

Comments
 (0)