From 9131d8b6f46e62fa3cf286b6306797576630872b Mon Sep 17 00:00:00 2001 From: neonloop Date: Tue, 10 Aug 2021 16:03:22 +0000 Subject: Reduces vector game resolution to 320x240 --- patches/mame2000/1005-reduce-vector-game-res.patch | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 patches/mame2000/1005-reduce-vector-game-res.patch (limited to 'patches') diff --git a/patches/mame2000/1005-reduce-vector-game-res.patch b/patches/mame2000/1005-reduce-vector-game-res.patch new file mode 100644 index 0000000..03103dc --- /dev/null +++ b/patches/mame2000/1005-reduce-vector-game-res.patch @@ -0,0 +1,47 @@ +diff --git a/src/libretro/libretro.c b/src/libretro/libretro.c +index 2f37f52..c58fceb 100644 +--- a/src/libretro/libretro.c ++++ b/src/libretro/libretro.c +@@ -948,6 +948,9 @@ bool retro_load_game(const struct retro_game_info *info) + /* skip disclaimer - skips 'nag screen' */ + options.skip_disclaimer = skip_disclaimer; + ++ options.vector_width = 320; ++ options.vector_height = 240; ++ + #if (HAS_CYCLONE || HAS_DRZ80) + int use_cyclone = 1; + int use_drz80 = 1; +diff --git a/src/libretro/video.c b/src/libretro/video.c +index f97ac05..d947468 100644 +--- a/src/libretro/video.c ++++ b/src/libretro/video.c +@@ -366,23 +366,13 @@ static void select_display_mode(int width,int height,int depth,int attributes,in + gfx_height=height; + } + +- /* vector games use 640x480 as default */ ++ /* vector games use 320x240 as default */ + if (vector_game && !iOS_fixedRes) + { +- if(safe_render_path) +- { +- gfx_width = 640; +- gfx_height = 480; +- emulated_width = 640; +- emulated_height = 480; +- } +- else +- { +- gfx_width = 320; +- gfx_height = 240; +- emulated_width = 320; +- emulated_height = 240; +- } ++ gfx_width = 320; ++ gfx_height = 240; ++ emulated_width = 320; ++ emulated_height = 240; + } + + gp2x_set_video_mode(16,gfx_width,gfx_height); -- cgit v1.2.3