Skip to content

Commit

Permalink
Add 400x240 resolution
Browse files Browse the repository at this point in the history
Another one to the list. Used by the SGH i900 version of Mega Tower
Assault, and according to TwoSpacesSG, a few SoftBank keitai games
as well.
  • Loading branch information
AShiningRay committed Nov 22, 2024
1 parent db76456 commit 54519c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/libretro/freej2me_libretro.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ struct retro_core_option_v2_definition core_options[] =
{ "240x320", NULL },
{ "320x240", NULL },
{ "240x400", NULL },
{ "400x240", NULL },
{ "240x432", NULL },
{ "240x480", NULL },
{ "352x416", NULL },
Expand Down Expand Up @@ -398,6 +399,7 @@ struct retro_core_option_definition core_options_v1 [] =
{ "240x320", NULL },
{ "320x240", NULL },
{ "240x400", NULL },
{ "400x240", NULL },
{ "240x432", NULL },
{ "240x480", NULL },
{ "352x416", NULL },
Expand Down Expand Up @@ -611,7 +613,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|240x432|240x480|352x416|360x640|640x360|640x480|480x800|800x480"
"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"
},
{ /* Screen Rotation */
"freej2me_rotate",
Expand Down
2 changes: 1 addition & 1 deletion src/org/recompile/freej2me/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -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","240x432","240x480","352x416","360x640","640x360","640x480","480x800","800x480"};
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 Runnable onChange;

Expand Down

0 comments on commit 54519c7

Please sign in to comment.