X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fmsdos.c;h=5090c55c1603ed779928c6373ef0538714583206;hp=598aa5d2c5b3081c39b1cca2bd0514cacb96eb5d;hb=afd9659572a8963b24b17340613b396ea49cbe55;hpb=7904f4290f1604d66285a5cd7bdf82099557d74a diff --git a/src/msdos.c b/src/msdos.c index 598aa5d2..5090c55c 100644 --- a/src/msdos.c +++ b/src/msdos.c @@ -348,6 +348,11 @@ Window XCreateSimpleWindow(Display *display, Window parent, int x, int y, display->screens[display->default_screen].height = YRES; set_mouse_sprite(display->mouse_ptr); + +#if 0 + set_mouse_sprite_focus(1, 1); +#endif + set_mouse_speed(1, 1); set_mouse_range(display->screens[display->default_screen].x + 1, display->screens[display->default_screen].y + 1, @@ -577,11 +582,17 @@ static BITMAP *Read_PCX_to_AllegroBitmap(char *filename) /* read the graphic file in PCX format to internal image structure */ if ((image = Read_PCX_to_Image(filename)) == NULL) + { + Error(ERR_RETURN, "Read_PCX_to_Image failed"); return NULL; + } /* convert internal image structure to allegro bitmap structure */ if ((bitmap = Image_to_AllegroBitmap(image)) == NULL) + { + Error(ERR_RETURN, "Image_to_AllegroBitmap failed"); return NULL; + } set_palette(global_colormap);