diff options
author | gameblabla | 2019-10-11 13:38:25 +0200 |
---|---|---|
committer | gameblabla | 2019-10-11 13:38:25 +0200 |
commit | b029a0b25f2f0cf9775f6f720756760e1f6c6438 (patch) | |
tree | f121917aa23c48789356068faac1721278b050b8 /shell/video/sdl | |
parent | cc878848a45db22abe284649c7e19f896a0abeb9 (diff) | |
download | snesemu-b029a0b25f2f0cf9775f6f720756760e1f6c6438.tar.gz snesemu-b029a0b25f2f0cf9775f6f720756760e1f6c6438.tar.bz2 snesemu-b029a0b25f2f0cf9775f6f720756760e1f6c6438.zip |
Fix text issues in Menu for Retrostone port and input code.
Diffstat (limited to 'shell/video/sdl')
-rw-r--r-- | shell/video/sdl/video_blit.c | 2 | ||||
-rw-r--r-- | shell/video/sdl/video_blit.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/shell/video/sdl/video_blit.c b/shell/video/sdl/video_blit.c index 9778039..fef7033 100644 --- a/shell/video/sdl/video_blit.c +++ b/shell/video/sdl/video_blit.c @@ -56,7 +56,7 @@ void Init_Video() sdl_screen = SDL_SetVideoMode(HOST_WIDTH_RESOLUTION, HOST_HEIGHT_RESOLUTION, 16, SDL_HWSURFACE); - backbuffer = SDL_CreateRGBSurface(SDL_SWSURFACE, HOST_WIDTH_RESOLUTION, HOST_HEIGHT_RESOLUTION, 16, 0,0,0,0); + backbuffer = SDL_CreateRGBSurface(SDL_SWSURFACE, 320, 240, 16, 0,0,0,0); Set_Video_InGame(); } diff --git a/shell/video/sdl/video_blit.h b/shell/video/sdl/video_blit.h index b34518b..08528e1 100644 --- a/shell/video/sdl/video_blit.h +++ b/shell/video/sdl/video_blit.h @@ -6,6 +6,9 @@ #define HOST_WIDTH_RESOLUTION sdl_screen->w #define HOST_HEIGHT_RESOLUTION sdl_screen->h +#define BACKBUFFER_WIDTH_RESOLUTION backbuffer->w +#define BACKBUFFER_HEIGHT_RESOLUTION backbuffer->h + extern SDL_Surface *sdl_screen, *backbuffer; extern uint32_t width_of_surface; |