CHEWY: Minor mouse/rendering cleanup

This commit is contained in:
Paul Gilbert
2022-03-03 18:34:58 -08:00
parent 3def51a841
commit 0531bd59b3
2 changed files with 7 additions and 20 deletions
+4 -1
View File
@@ -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) {
+3 -19
View File
@@ -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) {