mirror of
https://github.com/Interlisp/maiko.git
synced 2026-04-19 16:40:18 +00:00
Add support for inverting video and setting mouse position.
Use (IL:VIDEOCOLOR T/NIL) to change inversion.
This commit is contained in:
@@ -69,6 +69,13 @@ LispPTR DSP_VideoColor(LispPTR *args) /* args[0] : black flag */
|
||||
return ATOM_T;
|
||||
else
|
||||
return NIL;
|
||||
#elif defined(SDL)
|
||||
invert = args[0] & 0xFFFF;
|
||||
sdl_set_invert(invert);
|
||||
if (invert)
|
||||
return ATOM_T;
|
||||
else
|
||||
return NIL;
|
||||
#else
|
||||
return NIL;
|
||||
#endif
|
||||
@@ -114,6 +121,11 @@ void DSP_SetMousePos(LispPTR *args)
|
||||
if (Mouse_Included)
|
||||
set_Xmouseposition((int)(GetSmalldata(args[0])), (int)(GetSmalldata(args[1])));
|
||||
#endif /* XWINDOW */
|
||||
#ifdef SDL
|
||||
int x = (int)(GetSmalldata(args[0]));
|
||||
int y = (int)(GetSmalldata(args[1]));
|
||||
sdl_setMousePosition(x, y);
|
||||
#endif /* SDL */
|
||||
}
|
||||
|
||||
/****************************************************
|
||||
|
||||
Reference in New Issue
Block a user