diff --git a/src/osdep/amiberry_gfx.cpp b/src/osdep/amiberry_gfx.cpp index 33582d25..c4fdb7a3 100644 --- a/src/osdep/amiberry_gfx.cpp +++ b/src/osdep/amiberry_gfx.cpp @@ -1115,6 +1115,20 @@ bool show_screen_maybe(const bool show) return false; } +void DX_Fill(int dstx, int dsty, int width, int height, uae_u32 color) +{ + SDL_Rect dstrect; + if (width < 0) + width = screen->w; + if (height < 0) + height = screen->h; + dstrect.x = dstx; + dstrect.y = dsty; + dstrect.w = width; + dstrect.h = height; + SDL_FillRect(screen, &dstrect, color); +} + void black_screen_now() { #ifndef USE_DISPMANX diff --git a/src/osdep/amiberry_gfx.h b/src/osdep/amiberry_gfx.h index 0e052be2..42d70f4f 100644 --- a/src/osdep/amiberry_gfx.h +++ b/src/osdep/amiberry_gfx.h @@ -37,3 +37,4 @@ extern SDL_Rect renderQuad; extern bool can_have_linedouble; extern void check_error_sdl(bool check, const char* message); extern void toggle_fullscreen(); +extern void DX_Fill(int dstx, int dsty, int width, int height, uae_u32 color); \ No newline at end of file diff --git a/src/osdep/picasso96.cpp b/src/osdep/picasso96.cpp index 733e7ba0..85852bcc 100644 --- a/src/osdep/picasso96.cpp +++ b/src/osdep/picasso96.cpp @@ -35,6 +35,8 @@ #include +#include "amiberry_gfx.h" + #if defined(PICASSO96) #define WINCURSOR 1 @@ -939,11 +941,7 @@ void picasso_refresh() // Let's put a black-border around the case where we've got a sub-screen... if (!state->BigAssBitmap) { if (state->XOffset || state->YOffset) -#ifdef AMIBERRY - write_log("DX_FILL..\n"); -#else - DX_Fill(mon, 0, 0, state->Width, state->Height, 0); -#endif + DX_Fill(0, 0, state->Width, state->Height, 0); } } else { width = state->Width;