From 56ec20d2629e16a9636ce24682ab123717825900 Mon Sep 17 00:00:00 2001 From: kub Date: Sun, 3 Mar 2024 09:45:01 +0100 Subject: [PATCH] psp, small fixes --- platform/psp/emu.c | 2 +- platform/psp/menu.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/platform/psp/emu.c b/platform/psp/emu.c index 4a60311f..b53a0f91 100644 --- a/platform/psp/emu.c +++ b/platform/psp/emu.c @@ -566,7 +566,7 @@ static void sound_init(void) samples_made = samples_done = 0; samples_block = 2*22050/60; // make sure it goes to sema sound_thread_exit = 0; - thid = sceKernelCreateThread("sndthread", sound_thread, 0x12, 0x10000, 0, NULL); + thid = sceKernelCreateThread("sndthread", sound_thread, 0x12, 0x1000, 0, NULL); if (thid >= 0) { ret = sceKernelStartThread(thid, 0, 0); diff --git a/platform/psp/menu.c b/platform/psp/menu.c index 25ca9893..99a7d0e2 100644 --- a/platform/psp/menu.c +++ b/platform/psp/menu.c @@ -3,12 +3,14 @@ static const char *men_vscaling_opts[] = { "OFF", "fullscreen", "borderless", NU static const char *men_hscaling_opts[] = { "1:1", "4:3", "extended", "fullwidth", NULL }; static const char *men_filter_opts[] = { "nearest", "bilinear", NULL }; +static const char h_8bit[] = "This option only works for 8bit renderers"; + #define MENU_OPTIONS_GFX \ mee_enum ("Vertical scaling", MA_OPT_VSCALING, currentConfig.vscaling, men_vscaling_opts), \ mee_enum ("Aspect ratio", MA_OPT_SCALING, currentConfig.scaling, men_hscaling_opts), \ mee_enum ("Scaler type", MA_OPT3_FILTERING, currentConfig.filter, men_filter_opts), \ - mee_range ("Gamma adjustment", MA_OPT3_GAMMAA, currentConfig.gamma, -4, 16), \ - mee_range ("Black level", MA_OPT3_BLACKLVL, currentConfig.gamma2, 0, 2), \ + mee_range_h ("Gamma adjustment", MA_OPT3_GAMMAA, currentConfig.gamma, -4, 16, h_8bit), \ + mee_range_h ("Black level", MA_OPT3_BLACKLVL, currentConfig.gamma2, 0, 2, h_8bit), \ mee_onoff ("Wait for vsync", MA_OPT3_VSYNC, currentConfig.EmuOpt, EOPT_VSYNC), \ #define MENU_OPTIONS_ADV -- 2.39.5