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/retrostone | |
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/retrostone')
-rw-r--r-- | shell/video/retrostone/video_blit.c | 4 | ||||
-rw-r--r-- | shell/video/retrostone/video_blit.h | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/shell/video/retrostone/video_blit.c b/shell/video/retrostone/video_blit.c index 26bc298..7dcdce1 100644 --- a/shell/video/retrostone/video_blit.c +++ b/shell/video/retrostone/video_blit.c @@ -54,9 +54,9 @@ void Init_Video() SDL_ShowCursor(0); - sdl_screen = SDL_SetVideoMode(680, 448, 16, SDL_HWSURFACE); + sdl_screen = SDL_SetVideoMode(0, 0, 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/retrostone/video_blit.h b/shell/video/retrostone/video_blit.h index 8e1c81c..09aab60 100644 --- a/shell/video/retrostone/video_blit.h +++ b/shell/video/retrostone/video_blit.h @@ -3,13 +3,13 @@ #include <SDL/SDL.h> -#define HOST_WIDTH_RESOLUTION (sdl_screen->w) -#define HOST_HEIGHT_RESOLUTION (sdl_screen->h) +#define HOST_WIDTH_RESOLUTION sdl_screen->w +#define HOST_HEIGHT_RESOLUTION sdl_screen->h -#define INTERNAL_WSWAN_WIDTH 224 -#define INTERNAL_WSWAN_HEIGHT 144 +#define BACKBUFFER_WIDTH_RESOLUTION backbuffer->w +#define BACKBUFFER_HEIGHT_RESOLUTION backbuffer->h -extern SDL_Surface *screen, *wswan_vs, *backbuffer; +extern SDL_Surface *sdl_screen, *backbuffer; extern uint32_t width_of_surface; extern uint32_t* Draw_to_Virtual_Screen; |