aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/frotz
diff options
context:
space:
mode:
Diffstat (limited to 'engines/glk/frotz')
-rw-r--r--engines/glk/frotz/config.cpp2
-rw-r--r--engines/glk/frotz/processor_screen.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/glk/frotz/config.cpp b/engines/glk/frotz/config.cpp
index 28e9c7f122..be6c6df33e 100644
--- a/engines/glk/frotz/config.cpp
+++ b/engines/glk/frotz/config.cpp
@@ -147,7 +147,7 @@ void Header::loadHeader(Common::SeekableReadStream &f) {
UserOptions::UserOptions() : _undo_slots(MAX_UNDO_SLOTS), _sound(true), _quetzal(true), _color_enabled(false),
_err_report_mode(ERR_REPORT_ONCE), _ignore_errors(false), _expand_abbreviations(false), _tandyBit(false),
- _piracy(false), _script_cols(0), _left_margin(0), _right_margin(0) {
+ _piracy(false), _script_cols(0), _left_margin(0), _right_margin(0), _defaultBackground(0), _defaultForeground(0) {
}
void UserOptions::initialize(uint hVersion) {
diff --git a/engines/glk/frotz/processor_screen.cpp b/engines/glk/frotz/processor_screen.cpp
index 41932f53f8..2cc9080804 100644
--- a/engines/glk/frotz/processor_screen.cpp
+++ b/engines/glk/frotz/processor_screen.cpp
@@ -193,7 +193,7 @@ void Processor::erase_screen(zword win) {
int curr_fg = _wp[1][TRUE_FG_COLOR];
int curr_bg = _wp[1][TRUE_BG_COLOR];
- if (win == -1) {
+ if ((short)win == -1) {
if (_wp._upper) {
glk_set_window(_wp._upper);
#ifdef GARGLK