aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/frotz
diff options
context:
space:
mode:
authorPaul Gilbert2019-02-23 11:13:19 -0800
committerPaul Gilbert2019-02-23 11:13:19 -0800
commiteacc4e52d14a4929323df30da6346b6bbacda9b8 (patch)
treea3e44085a9972ee2ceb030dd4fc093838faba426 /engines/glk/frotz
parent7b303ad94668690a1defb25ea72afc0d5cacb958 (diff)
downloadscummvm-rg350-eacc4e52d14a4929323df30da6346b6bbacda9b8.tar.gz
scummvm-rg350-eacc4e52d14a4929323df30da6346b6bbacda9b8.tar.bz2
scummvm-rg350-eacc4e52d14a4929323df30da6346b6bbacda9b8.zip
GLK: FROTZ: Fix initialization of zcolors array
Diffstat (limited to 'engines/glk/frotz')
-rw-r--r--engines/glk/frotz/glk_interface.cpp4
-rw-r--r--engines/glk/frotz/glk_interface.h2
2 files changed, 3 insertions, 3 deletions
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;