#include "emu.h"\r
#include "plat.h"\r
#include "posix.h"\r
+#include <version.h>\r
\r
#include <pico/pico_int.h>\r
#include <pico/patch.h>\r
\r
static const char *mgn_opt_scaling(menu_id id, int *offs)\r
{\r
- *offs = -12;\r
+ *offs = -13;\r
switch (currentConfig.scaling) {\r
- default: return " OFF";\r
- case 1: return "hw horizontal";\r
- case 2: return "hw horiz. + vert.";\r
- case 3: return "sw horizontal";\r
+ default: return " OFF";\r
+ case EOPT_SCALE_HW_H: return " hw horizontal";\r
+ case EOPT_SCALE_HW_HV: return "hw horiz. + vert";\r
+ case EOPT_SCALE_SW_H: return " sw horizontal";\r
}\r
}\r
\r
{\r
mee_range_cust("Scaling", MA_OPT_SCALING, currentConfig.scaling, 0, 3, mgn_opt_scaling),\r
mee_range_cust("Gamma correction", MA_OPT2_GAMMA, currentConfig.gamma, 1, 300, mgn_aopt_gamma),\r
- mee_onoff ("A_SN's gamma curve", MA_OPT2_A_SN_GAMMA, currentConfig.EmuOpt, 0x1000),\r
- mee_onoff ("Perfect vsync", MA_OPT2_VSYNC, currentConfig.EmuOpt, 0x2000),\r
+ mee_onoff ("A_SN's gamma curve", MA_OPT2_A_SN_GAMMA, currentConfig.EmuOpt, EOPT_A_SN_GAMMA),\r
+ mee_onoff ("Perfect vsync", MA_OPT2_VSYNC, currentConfig.EmuOpt, EOPT_PSYNC),\r
mee_end,\r
};\r
\r
\r
// ------------ util ------------\r
\r
+/* wiz for now, probably extend later */\r
+void menu_plat_setup(int is_wiz)\r
+{\r
+ int i;\r
+\r
+ if (!is_wiz)\r
+ return;\r
+\r
+ me_enable(e_menu_adv_options, MA_OPT_ARM940_SOUND, 0);\r
+ me_enable(e_menu_gfx_options, MA_OPT2_GAMMA, 0);\r
+ me_enable(e_menu_gfx_options, MA_OPT2_A_SN_GAMMA, 0);\r
+\r
+ i = me_id2offset(e_menu_gfx_options, MA_OPT_SCALING);\r
+ e_menu_gfx_options[i].max = 1; /* only off and sw */\r
+}\r
+\r
/* TODO: rename */\r
void menu_darken_bg(void *dst, int pixels, int darker)\r
{\r