mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
CHEWY: Minor mouse/rendering cleanup
This commit is contained in:
@@ -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
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user