From a0b294603e6acf645a9c07058463d9d3d06ff08f Mon Sep 17 00:00:00 2001 From: AShiningRay Date: Sun, 24 Nov 2024 21:29:02 -0300 Subject: [PATCH] Add Sharp GX 1x Series screen resolution 120x160. Not seen very often, but used by some jars nonetheless. --- src/libretro/freej2me_libretro.h | 4 +++- src/org/recompile/freej2me/Config.java | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libretro/freej2me_libretro.h b/src/libretro/freej2me_libretro.h index 8990121..9ff9817 100644 --- a/src/libretro/freej2me_libretro.h +++ b/src/libretro/freej2me_libretro.h @@ -107,6 +107,7 @@ struct retro_core_option_v2_definition core_options[] = { "101x80", NULL }, { "128x128", NULL }, { "130x130", NULL }, + { "120x160", NULL }, { "128x160", NULL }, { "132x176", NULL }, { "176x208", NULL }, @@ -404,6 +405,7 @@ struct retro_core_option_definition core_options_v1 [] = { "101x80", NULL }, { "128x128", NULL }, { "130x130", NULL }, + { "120x160", NULL }, { "128x160", NULL }, { "132x176", NULL }, { "176x208", NULL }, @@ -641,7 +643,7 @@ static const struct retro_variable vars[] = { { /* Screen Resolution */ "freej2me_resolution", - "Phone Resolution (Core Restart may be required); 240x320|96x65|101x64|101x80|128x128|130x130|128x160|132x176|176x208|176x220|220x176|208x208|180x320|320x180|208x320|320x240|240x400|400x240|240x432|240x480|352x416|360x640|640x360|640x480|480x800|800x480" + "Phone Resolution (Core Restart may be required); 240x320|96x65|101x64|101x80|128x128|130x130|120x160|128x160|132x176|176x208|176x220|220x176|208x208|180x320|320x180|208x320|320x240|240x400|400x240|240x432|240x480|352x416|360x640|640x360|640x480|480x800|800x480" }, { /* Screen Rotation */ "freej2me_rotate", diff --git a/src/org/recompile/freej2me/Config.java b/src/org/recompile/freej2me/Config.java index 7775e68..a7b5f6a 100644 --- a/src/org/recompile/freej2me/Config.java +++ b/src/org/recompile/freej2me/Config.java @@ -46,7 +46,7 @@ public class Config private String configPath = ""; private String configFile = ""; - public final String[] supportedResolutions = {"96x65","101x64","101x80","128x128","130x130","128x160","132x176","176x208","176x220","220x176","208x208","180x320","320x180","208x320","240x320","320x240","240x400","400x240","240x432","240x480","352x416","360x640","640x360","640x480","480x800","800x480"}; + public final String[] supportedResolutions = {"96x65","101x64","101x80","128x128","130x130","120x160","128x160","132x176","176x208","176x220","220x176","208x208","180x320","320x180","208x320","240x320","320x240","240x400","400x240","240x432","240x480","352x416","360x640","640x360","640x480","480x800","800x480"}; public Runnable onChange;