From 0531bd59b3601a8edc54e2ef263cc2e08062e4de Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 27 Sep 2021 18:28:10 -0700 Subject: [PATCH] CHEWY: Minor mouse/rendering cleanup --- engines/chewy/main.cpp | 5 ++++- engines/chewy/maus.cpp | 22 +++------------------- 2 files changed, 7 insertions(+), 20 deletions(-) diff --git a/engines/chewy/main.cpp b/engines/chewy/main.cpp index 56aaa9710c6..3363ae8a368 100644 --- a/engines/chewy/main.cpp +++ b/engines/chewy/main.cpp @@ -22,9 +22,10 @@ #define FORBIDDEN_SYMBOL_EXCEPTION_rand -#include "chewy/ngshext.h" #include "chewy/main.h" +#include "chewy/chewy.h" #include "chewy/menus.h" +#include "chewy/ngshext.h" namespace Chewy { @@ -711,6 +712,8 @@ void set_up_screen(int16 mode) { spieler_vector[P_CHEWY].Xypos[1] + spieler_mi[P_CHEWY].HotY, ScrXy[0], ScrXy[1], &spieler.scrollx, &spieler.scrolly); + + g_engine->_screen->update(); } void mous_obj_action(int16 nr, int16 mode, int16 txt_mode, int16 txt_nr) { diff --git a/engines/chewy/maus.cpp b/engines/chewy/maus.cpp index d627e727efe..29fbf98099b 100644 --- a/engines/chewy/maus.cpp +++ b/engines/chewy/maus.cpp @@ -20,8 +20,9 @@ * */ -#include "chewy/maus.h" #include "common/textconsole.h" +#include "chewy/maus.h" +#include "chewy/events.h" namespace Chewy { @@ -113,24 +114,7 @@ void maus::speed(int16 x, int16 y) { } void maus::move_mouse(int16 x, int16 y) { - warning("STUB - mouse_mouse"); -#if 0 - int16 tx; - int16 ty; - tx = x; - ty = y; -#pragma aux asm_move = "push ax"\ -"push cx"\ -"push dx"\ -"mov cx,tx"\ -"mov dx,ty"\ -"mov ax,4"\ -"int 033h"\ -"pop dx"\ -"pop cx"\ -"pop ax" - asm_move(); -#endif + g_events->warpMouse(Common::Point(x, y)); } void maus::rectangle(int16 xmin, int16 ymin, int16 xmax, int16 ymax) {