aboutsummaryrefslogtreecommitdiff
path: root/simon/charset.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'simon/charset.cpp')
-rw-r--r--simon/charset.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/simon/charset.cpp b/simon/charset.cpp
index c96acd7710..b0cd440d6a 100644
--- a/simon/charset.cpp
+++ b/simon/charset.cpp
@@ -100,9 +100,10 @@ void SimonState::render_string(uint num_1, uint color, uint width, uint height,
if (_game == GAME_SIMON1AMIGA) {
// FIXME Really bad hack to allow simon1amiga to work for now
// simon1amiga needs to be decoded a different way
- warning("img_height is %d and img_width is %d", img_height, img_width);
- img_height = 9;
- img_width = 7;
+ if (img_width < 1 || img_width > 49)
+ img_width = 7;
+ if (img_height < 1 || img_height > 49)
+ img_height = 9;
}
assert(img_width > 0 && img_width < 50 && img_height > 0 && img_height < 50);