aboutsummaryrefslogtreecommitdiff
path: root/shell/video
diff options
context:
space:
mode:
authorgameblabla2019-10-11 13:38:25 +0200
committergameblabla2019-10-11 13:38:25 +0200
commitb029a0b25f2f0cf9775f6f720756760e1f6c6438 (patch)
treef121917aa23c48789356068faac1721278b050b8 /shell/video
parentcc878848a45db22abe284649c7e19f896a0abeb9 (diff)
downloadsnesemu-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')
-rw-r--r--shell/video/retrostone/video_blit.c4
-rw-r--r--shell/video/retrostone/video_blit.h10
-rw-r--r--shell/video/sdl/video_blit.c2
-rw-r--r--shell/video/sdl/video_blit.h3
4 files changed, 11 insertions, 8 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;
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;