Skip to content

Commit 80a90bd

Browse files
committed
Increment the window line counter even if the window is disabled.
This fixes gameplay status line in Warriors of Might and Magic #32.
1 parent 0bb0743 commit 80a90bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • core/src/main/java/eu/rekawek/coffeegb/core/gpu

core/src/main/java/eu/rekawek/coffeegb/core/gpu/Gpu.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public Mode tick() {
179179

180180
case HBlank:
181181
ticksInLine = 0;
182-
if (r.get(WX) < 166 && r.get(WY) < 143 && r.get(LY) >= r.get(WY) && lcdc.isWindowDisplay()) {
182+
if (r.get(WX) < 166 && r.get(WY) < 143 && r.get(LY) >= r.get(WY)) {
183183
pixelTransferPhase.incrementWindowLineCounter();
184184
}
185185
if (r.preIncrement(LY) == 144) {

0 commit comments

Comments
 (0)