diff options
author | Paul Gilbert | 2019-01-31 19:01:22 -0800 |
---|---|---|
committer | Paul Gilbert | 2019-01-31 21:54:33 -0800 |
commit | 307dd44fba7efb763c611dc45af7535d2b20ca46 (patch) | |
tree | 605ff1b2739ca0cc9a1e5693a91225453b010433 /engines | |
parent | 543027de110283e3ec5104a6a90ad377f2d2822f (diff) | |
download | scummvm-rg350-307dd44fba7efb763c611dc45af7535d2b20ca46.tar.gz scummvm-rg350-307dd44fba7efb763c611dc45af7535d2b20ca46.tar.bz2 scummvm-rg350-307dd44fba7efb763c611dc45af7535d2b20ca46.zip |
GLK: FROTZ: Cleanup of current fg/bg variables
Diffstat (limited to 'engines')
-rw-r--r-- | engines/glk/frotz/glk_interface.cpp | 12 | ||||
-rw-r--r-- | engines/glk/frotz/glk_interface.h | 3 | ||||
-rw-r--r-- | engines/glk/frotz/processor_screen.cpp | 4 |
3 files changed, 9 insertions, 10 deletions
diff --git a/engines/glk/frotz/glk_interface.cpp b/engines/glk/frotz/glk_interface.cpp index 9c0b8feb51..e8a285a574 100644 --- a/engines/glk/frotz/glk_interface.cpp +++ b/engines/glk/frotz/glk_interface.cpp @@ -33,12 +33,12 @@ namespace Frotz { GlkInterface::GlkInterface(OSystem *syst, const GlkGameDescription &gameDesc) : GlkAPI(syst, gameDesc), - _pics(nullptr), oldstyle(0), curstyle(0), cury(1), curx(1), fixforced(0), curr_fg(-2), curr_bg(-2), - curr_font(1), prev_font(1), temp_font(0), curr_status_ht(0), mach_status_ht(0), gos_status(nullptr), - gos_curwin(nullptr), gos_linepending(0), gos_linebuf(nullptr), gos_linewin(nullptr), - gos_channel(nullptr), cwin(0), mwin(0), mouse_x(0), mouse_y(0), menu_selected(0), enable_wrapping(false), - enable_scripting(false), enable_scrolling(false), enable_buffering(false), next_sample(0), next_volume(0), - _soundLocked(false), _soundPlaying(false) { + _pics(nullptr), oldstyle(0), curstyle(0), cury(1), curx(1), fixforced(0), + curr_fg(zcolor_Current), curr_bg(zcolor_Current), curr_font(1), prev_font(1), temp_font(0), + curr_status_ht(0), mach_status_ht(0), gos_status(nullptr), gos_curwin(nullptr), gos_linepending(0), + gos_linebuf(nullptr), gos_linewin(nullptr), gos_channel(nullptr), cwin(0), mwin(0), mouse_x(0), mouse_y(0), + menu_selected(0), enable_wrapping(false), enable_scripting(false), enable_scrolling(false), + enable_buffering(false), next_sample(0), next_volume(0), _soundLocked(false), _soundPlaying(false) { Common::fill(&statusline[0], &statusline[256], '\0'); } diff --git a/engines/glk/frotz/glk_interface.h b/engines/glk/frotz/glk_interface.h index d3808013a4..178b53339d 100644 --- a/engines/glk/frotz/glk_interface.h +++ b/engines/glk/frotz/glk_interface.h @@ -59,8 +59,7 @@ public: int curx; int fixforced; - int curr_fg; - int curr_bg; + uint curr_fg, curr_bg; int curr_font; int prev_font; int temp_font; diff --git a/engines/glk/frotz/processor_screen.cpp b/engines/glk/frotz/processor_screen.cpp index 211dc896a5..95e1218f01 100644 --- a/engines/glk/frotz/processor_screen.cpp +++ b/engines/glk/frotz/processor_screen.cpp @@ -290,8 +290,8 @@ void Processor::z_set_true_colour() { garglk_set_zcolors(zfore, zback); #endif /* GARGLK */ - curr_fg = zfore; - curr_bg = zback; + curr_fg = (uint)zfore; + curr_bg = (uint)zback; } static const int zcolor_map[] = { |