/***********************************************************
* Rocks'n'Diamonds -- McDuffin Strikes Back! *
*----------------------------------------------------------*
-* ©1995 Artsoft Development *
-* Holger Schemel *
-* 33659 Bielefeld-Senne *
-* Telefon: (0521) 493245 *
-* eMail: aeglos@valinor.owl.de *
-* aeglos@uni-paderborn.de *
-* q99492@pbhrzx.uni-paderborn.de *
+* (c) 1995-98 Artsoft Entertainment *
+* Holger Schemel *
+* Oststrasse 11a *
+* 33604 Bielefeld *
+* phone: ++49 +521 290471 *
+* email: aeglos@valinor.owl.de *
*----------------------------------------------------------*
* msdos.c *
***********************************************************/
static int key_buffer[OSD_MAX_KEY];
static XEvent event_buffer[MAX_EVENT_BUFFER];
static int pending_events;
-static BOOL joystick_event;
-static BOOL mouse_installed = FALSE;
+static boolean joystick_event;
+static boolean mouse_installed = FALSE;
static int last_mouse_pos;
static int last_mouse_b;
static int last_joystick_state;
static BITMAP* video_bitmap;
-BOOL wait_for_vsync;
+boolean wait_for_vsync;
extern int playing_sounds;
extern struct SoundControl playlist[MAX_SOUNDS_PLAYING];
}
-BOOL hide_mouse(Display *display, int x, int y, unsigned int width, unsigned int height)
+boolean hide_mouse(Display *display, int x, int y,
+ unsigned int width, unsigned int height)
{
if(mouse_x + display->mouse_ptr->w < x || mouse_x > x+width) return FALSE;
if(mouse_y + display->mouse_ptr->h < y || mouse_y > y+height) return FALSE;
{
int x, y;
unsigned int width, height;
- BOOL mouse_off;
+ boolean mouse_off;
x = display->screens[display->default_screen].x;
y = display->screens[display->default_screen].y;
unsigned int width,
unsigned int height)
{
- BOOL mouse_off;
+ boolean mouse_off;
if((BITMAP *) d == video_bitmap)
{
int dest_x,
int dest_y)
{
- BOOL mouse_off;
+ boolean mouse_off;
if((BITMAP *) src == video_bitmap )
{
int XPending(Display* display)
{
int i, state;
- static BOOL joy_button_2 = FALSE;
+ static boolean joy_button_2 = FALSE;
XKeyEvent *xkey;
XButtonEvent *xbutton;