diff options
author | Paul Gilbert | 2019-01-01 18:31:07 -0800 |
---|---|---|
committer | Paul Gilbert | 2019-01-01 18:31:07 -0800 |
commit | c43f625fd814e2f3baf61d76441121bbe3554f91 (patch) | |
tree | 1861cdb7a246f21144c463bf0435fdeef0dc0ac3 /engines/glk/frotz/processor_windows.cpp | |
parent | 4568e498cabd2c8523a5c0717e57c71d334f26e7 (diff) | |
download | scummvm-rg350-c43f625fd814e2f3baf61d76441121bbe3554f91.tar.gz scummvm-rg350-c43f625fd814e2f3baf61d76441121bbe3554f91.tar.bz2 scummvm-rg350-c43f625fd814e2f3baf61d76441121bbe3554f91.zip |
GLK: FROTZ: Added skeleton classes for ZMachine windows
Diffstat (limited to 'engines/glk/frotz/processor_windows.cpp')
-rw-r--r-- | engines/glk/frotz/processor_windows.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/engines/glk/frotz/processor_windows.cpp b/engines/glk/frotz/processor_windows.cpp index c0a1e3feee..ad16bbafe6 100644 --- a/engines/glk/frotz/processor_windows.cpp +++ b/engines/glk/frotz/processor_windows.cpp @@ -51,7 +51,8 @@ void Processor::z_draw_picture() { if (!x || !y) { // Currently I only support getting the cursor for the text grid area assert(cwin == 1); - Point cursPos = gos_upper->getCursor(); + winid_t win = _wp._upper; + Point cursPos = win->getCursor(); // use cursor column if x-coordinate is 0 if (!x) x = cursPos.x; @@ -82,18 +83,18 @@ void Processor::z_draw_picture() { if (_storyId == ARTHUR && pic == 54) delta = h_screen_width / 160; - os_draw_picture(mapper[i].pic1, gos_lower, Point(x + delta, y + height1)); - os_draw_picture(mapper[i].pic2, gos_lower, Point(x + width1 - width2 - delta, y + height1)); + os_draw_picture(mapper[i].pic1, _wp._lower, Point(x + delta, y + height1)); + os_draw_picture(mapper[i].pic2, _wp._lower, Point(x + width1 - width2 - delta, y + height1)); } } - os_draw_picture(pic, gos_lower, Point(x, y)); + os_draw_picture(pic, _wp._lower, Point(x, y)); if (_storyId == SHOGUN && pic == 3) { uint height, width; os_picture_data(59, &height, &width); - os_draw_picture(59, gos_lower, Point(h_screen_width - width + 1, y)); + os_draw_picture(59, _wp._lower, Point(h_screen_width - width + 1, y)); } } |