aboutsummaryrefslogtreecommitdiff
path: root/engines/glk
diff options
context:
space:
mode:
authorPaul Gilbert2019-02-17 20:25:13 -0800
committerPaul Gilbert2019-02-17 20:25:13 -0800
commitce5b400e4a60ee06ce1ddfefed4023c635b3bf46 (patch)
tree43b2e7f057f93dc89d22fe6cc26e1c9f9aef0e8d /engines/glk
parent480ca0d388e0002321bbc46dd7ee930dad28eef9 (diff)
downloadscummvm-rg350-ce5b400e4a60ee06ce1ddfefed4023c635b3bf46.tar.gz
scummvm-rg350-ce5b400e4a60ee06ce1ddfefed4023c635b3bf46.tar.bz2
scummvm-rg350-ce5b400e4a60ee06ce1ddfefed4023c635b3bf46.zip
GLK: FROTZ: Fix Coverity identified warnings
Diffstat (limited to 'engines/glk')
-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