mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
ui, scaling in sdl window mode (ATM hidden)
This commit is contained in:
parent
e08e46ba44
commit
1106272c84
3 changed files with 18 additions and 3 deletions
|
@ -78,8 +78,7 @@ static const char *men_dummy[] = { NULL };
|
||||||
#elif defined(PANDORA)
|
#elif defined(PANDORA)
|
||||||
#include <platform/pandora/menu.c>
|
#include <platform/pandora/menu.c>
|
||||||
#else
|
#else
|
||||||
#define MENU_OPTIONS_GFX
|
#include <platform/linux/menu.c>
|
||||||
#define MENU_OPTIONS_ADV
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void make_bg(int no_scale, int from_screen)
|
static void make_bg(int no_scale, int from_screen)
|
||||||
|
|
|
@ -230,7 +230,7 @@ void plat_video_loop_prepare(void)
|
||||||
// take over any new vout settings XXX ask plat_sdl for scaling instead!
|
// take over any new vout settings XXX ask plat_sdl for scaling instead!
|
||||||
plat_sdl_change_video_mode(g_menuscreen_w, g_menuscreen_h, 0);
|
plat_sdl_change_video_mode(g_menuscreen_w, g_menuscreen_h, 0);
|
||||||
// switch over to scaled output if available
|
// switch over to scaled output if available
|
||||||
if (plat_sdl_overlay != NULL || plat_sdl_gl_active) {
|
if (plat_sdl_overlay != NULL || plat_sdl_gl_active || currentConfig.scaling != EOPT_SCALE_NONE) {
|
||||||
g_screen_width = 320;
|
g_screen_width = 320;
|
||||||
g_screen_height = 240;
|
g_screen_height = 240;
|
||||||
g_screen_ppitch = g_screen_width;
|
g_screen_ppitch = g_screen_width;
|
||||||
|
|
16
platform/linux/menu.c
Normal file
16
platform/linux/menu.c
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
#include "../libpicofe/gp2x/plat_gp2x.h"
|
||||||
|
|
||||||
|
// ------------ gfx options menu ------------
|
||||||
|
|
||||||
|
|
||||||
|
const char *men_scaling_opts[] = { "OFF", "ON", NULL };
|
||||||
|
|
||||||
|
#define MENU_OPTIONS_GFX \
|
||||||
|
// mee_enum ("screen scaling", MA_OPT_SCALING, currentConfig.scaling, men_scaling_opts), \
|
||||||
|
|
||||||
|
#define MENU_OPTIONS_ADV
|
||||||
|
|
||||||
|
void linux_menu_init(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue