X-Git-Url: https://git.distorted.org.uk/~mdw/newkind/blobdiff_plain/84bbd12316a7ed2130dd1b2f2bc860a11624c3f3..1a8abebd82b12bd24a5418adab3e8c15d7a521c9:/alg_gfx.c diff --git a/alg_gfx.c b/alg_gfx.c index 222b0c0..2ca464e 100644 --- a/alg_gfx.c +++ b/alg_gfx.c @@ -83,7 +83,9 @@ int gfx_graphics_startup (void) #endif #else - rv = set_gfx_mode(GFX_AUTODETECT, 800, 600, 0, 0); + rv = set_gfx_mode(prefer_window ? + GFX_AUTODETECT_WINDOWED : GFX_AUTODETECT, + 800, 600, 0, 0); #endif if (rv != 0) @@ -584,7 +586,11 @@ void gfx_display_pretty_text (int tx, int ty, int bx, int by, char *txt) void gfx_draw_scanner (void) { - blit (scanner_image, gfx_screen, 0, 0, GFX_X_OFFSET, 385+GFX_Y_OFFSET, scanner_image->w, scanner_image->h); + set_clip(gfx_screen, GFX_X_OFFSET, 385 + GFX_Y_OFFSET, + GFX_X_OFFSET + scanner_image->w, + GFX_Y_OFFSET + scanner_image->h + 385); + blit (scanner_image, gfx_screen, 0, 0, GFX_X_OFFSET, + 385+GFX_Y_OFFSET, scanner_image->w, scanner_image->h); } void gfx_set_clip_region (int tx, int ty, int bx, int by)