Implemented DX_Fill()
This commit is contained in:
parent
d13b9571f8
commit
424707aaa8
3 changed files with 18 additions and 5 deletions
|
@ -1115,6 +1115,20 @@ bool show_screen_maybe(const bool show)
|
||||||
return false;
|
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()
|
void black_screen_now()
|
||||||
{
|
{
|
||||||
#ifndef USE_DISPMANX
|
#ifndef USE_DISPMANX
|
||||||
|
|
|
@ -37,3 +37,4 @@ extern SDL_Rect renderQuad;
|
||||||
extern bool can_have_linedouble;
|
extern bool can_have_linedouble;
|
||||||
extern void check_error_sdl(bool check, const char* message);
|
extern void check_error_sdl(bool check, const char* message);
|
||||||
extern void toggle_fullscreen();
|
extern void toggle_fullscreen();
|
||||||
|
extern void DX_Fill(int dstx, int dsty, int width, int height, uae_u32 color);
|
|
@ -35,6 +35,8 @@
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
#include "amiberry_gfx.h"
|
||||||
|
|
||||||
#if defined(PICASSO96)
|
#if defined(PICASSO96)
|
||||||
|
|
||||||
#define WINCURSOR 1
|
#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...
|
// Let's put a black-border around the case where we've got a sub-screen...
|
||||||
if (!state->BigAssBitmap) {
|
if (!state->BigAssBitmap) {
|
||||||
if (state->XOffset || state->YOffset)
|
if (state->XOffset || state->YOffset)
|
||||||
#ifdef AMIBERRY
|
DX_Fill(0, 0, state->Width, state->Height, 0);
|
||||||
write_log("DX_FILL..\n");
|
|
||||||
#else
|
|
||||||
DX_Fill(mon, 0, 0, state->Width, state->Height, 0);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
width = state->Width;
|
width = state->Width;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue