aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sword1/screen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sword1/screen.cpp b/sword1/screen.cpp
index 55135c9670..3ad436141f 100644
--- a/sword1/screen.cpp
+++ b/sword1/screen.cpp
@@ -206,7 +206,7 @@ void SwordScreen::updateScreen(void) {
uint16 cpWidth = 0;
uint16 cpHeight = SCRNGRID_Y;
if (cnty == gridH - 1)
- cpHeight = diffY;
+ cpHeight = SCRNGRID_Y - diffY;
for (uint16 cntx = 0; cntx < gridW; cntx++)
if (gridPos[cntx]) {
gridPos[cntx] >>= 1;