diff options
author | Paul Gilbert | 2019-05-08 17:29:07 +1000 |
---|---|---|
committer | Paul Gilbert | 2019-05-10 12:11:05 +1000 |
commit | 2765ba9afa4918e46ab0835c0f6e9183c57b612a (patch) | |
tree | 6ab7770ab6a4338a65a7a9961fdd9597dcae63f0 /engines/glk/hugo/hugo.cpp | |
parent | 19a9b9aa31cad3920bc258ebe79d1e1c9a7b537c (diff) | |
download | scummvm-rg350-2765ba9afa4918e46ab0835c0f6e9183c57b612a.tar.gz scummvm-rg350-2765ba9afa4918e46ab0835c0f6e9183c57b612a.tar.bz2 scummvm-rg350-2765ba9afa4918e46ab0835c0f6e9183c57b612a.zip |
GLK: HUGO: Added Glk interface methods
Diffstat (limited to 'engines/glk/hugo/hugo.cpp')
-rw-r--r-- | engines/glk/hugo/hugo.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/engines/glk/hugo/hugo.cpp b/engines/glk/hugo/hugo.cpp index 3f63d3b6b2..afc788e59c 100644 --- a/engines/glk/hugo/hugo.cpp +++ b/engines/glk/hugo/hugo.cpp @@ -26,7 +26,7 @@ namespace Glk { namespace Hugo { Hugo::Hugo(OSystem *syst, const GlkGameDescription &gameDesc) : GlkAPI(syst, gameDesc), - mainwin(nullptr), currentwin(nullptr), address_scale(16), + mainwin(nullptr), currentwin(nullptr), secondwin(nullptr), auxwin(nullptr), address_scale(16), SCREENWIDTH(0), SCREENHEIGHT(0), FIXEDCHARWIDTH(0), FIXEDLINEHEIGHT(0), game_version(0), object_size(0), game(nullptr), script(nullptr), save(nullptr), playback(nullptr), record(nullptr), io(nullptr), ioblock('\0'), ioerror('\0'), @@ -40,18 +40,16 @@ Hugo::Hugo(OSystem *syst, const GlkGameDescription &gameDesc) : GlkAPI(syst, gam physical_windowwidth(0), physical_windowheight(0), physical_windowtop(0), physical_windowleft(0), physical_windowbottom(0), physical_windowright(0), inwindow(0), charwidth(0), lineheight(0), current_text_x(0), current_text_y(0), - undoptr(0), undoturn(0), undoinvalid(0), undorecord(0), + undoptr(0), undoturn(0), undoinvalid(0), undorecord(0), context_commands(0), in_valid_window(false), glk_fcolor(DEF_FCOLOR), glk_bgcolor(DEF_BGCOLOR), - mainwin_bgcolor(0), glk_current_font(0), just_cleared_screen(false) { -#if !defined (COMPILE_V25) + mainwin_bgcolor(0), glk_current_font(0), just_cleared_screen(false), secondwin_bottom(0) { Common::fill(&context_command[0][0], &context_command[MAX_CONTEXT_COMMANDS][64], 0); - context_commands = 0; -#endif - Common::fill(&id[0], &id[3], '\0'); Common::fill(&serial[0], &serial[9], '\0'); Common::fill(&pbuffer[0], &pbuffer[MAXBUFFER * 2 + 1], 0); Common::fill(&undostack[0][0], &undostack[MAXUNDO][5], 0); + Common::fill(&buffer[0], &buffer[MAXBUFFER + MAXWORDS], '\0'); + Common::fill(&var[0], &var[MAXLOCALS + MAXGLOBALS], 0); } // TODO: Proper method implementations |