From eacc4e52d14a4929323df30da6346b6bbacda9b8 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 23 Feb 2019 11:13:19 -0800 Subject: GLK: FROTZ: Fix initialization of zcolors array --- engines/glk/frotz/glk_interface.cpp | 4 ++-- engines/glk/frotz/glk_interface.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/glk/frotz') diff --git a/engines/glk/frotz/glk_interface.cpp b/engines/glk/frotz/glk_interface.cpp index 48203bf7e5..dda932dc3d 100644 --- a/engines/glk/frotz/glk_interface.cpp +++ b/engines/glk/frotz/glk_interface.cpp @@ -68,8 +68,8 @@ void GlkInterface::initialize() { 0x2D6B, ///< 12 = dark grey }; - zcolors[0] = -2; // Current - zcolors[1] = -1; // Default + zcolors[0] = zcolor_Current; // Current + zcolors[1] = zcolor_Default; // Default for (int i = 2; i < zcolor_NUMCOLORS; ++i) zcolors[i] = zRGB(COLOR_MAP[i - 2]); diff --git a/engines/glk/frotz/glk_interface.h b/engines/glk/frotz/glk_interface.h index ea7a104b8a..b52fdc4e6d 100644 --- a/engines/glk/frotz/glk_interface.h +++ b/engines/glk/frotz/glk_interface.h @@ -61,7 +61,7 @@ private: public: Pics *_pics; zchar statusline[256]; - int zcolors[zcolor_NUMCOLORS]; + uint zcolors[zcolor_NUMCOLORS]; int oldstyle; int curstyle; int cury; -- cgit v1.2.3