disabled brightness on hdmi out

This commit is contained in:
Shaun Inman 2023-03-07 20:17:43 -05:00
parent ede93e3010
commit ebff426e29
2 changed files with 10 additions and 6 deletions

View file

@ -1321,6 +1321,7 @@ void POW_warn(int enable) {
void POW_update(int* _dirty, int* _show_setting, POW_callback_t before_sleep, POW_callback_t after_sleep) { void POW_update(int* _dirty, int* _show_setting, POW_callback_t before_sleep, POW_callback_t after_sleep) {
int dirty = _dirty ? *_dirty : 0; int dirty = _dirty ? *_dirty : 0;
int show_setting = _show_setting ? *_show_setting : 0; int show_setting = _show_setting ? *_show_setting : 0;
int ignore_menu = GetHDMI();
static uint32_t cancel_start = 0; static uint32_t cancel_start = 0;
static uint32_t power_start = 0; static uint32_t power_start = 0;
@ -1381,10 +1382,10 @@ void POW_update(int* _dirty, int* _show_setting, POW_callback_t before_sleep, PO
} }
#define MENU_DELAY 250 // also in PAD_tappedMenu() #define MENU_DELAY 250 // also in PAD_tappedMenu()
if (PAD_justRepeated(BTN_PLUS) || PAD_justRepeated(BTN_MINUS) || (PAD_isPressed(BTN_MENU) && now-menu_start>=MENU_DELAY && !GetHDMI())) { if (PAD_justRepeated(BTN_PLUS) || PAD_justRepeated(BTN_MINUS) || (PAD_isPressed(BTN_MENU) && now-menu_start>=MENU_DELAY && !ignore_menu)) {
setting_start = now; setting_start = now;
if (PAD_isPressed(BTN_MENU)) { if (PAD_isPressed(BTN_MENU)) {
show_setting = 1; if (!ignore_menu) show_setting = 1;
} }
else { else {
show_setting = 2; show_setting = 2;

View file

@ -38,23 +38,28 @@ minarch
eggs implemented mixed scale neon scalers, hook those up eggs implemented mixed scale neon scalers, hook those up
I should probably rewrite the entire render pipeline now that I better understand I should probably rewrite the entire render pipeline now that I better understand
the requirements for resolution independence... the requirements for resolution independence...
and because I'll need a self-contained implementation to be able to address the unique quirks of each platform I want to support
add most recent uImage/kernel changes add most recent uImage/kernel changes
wait till things settle wait till things settle
keep an eye on gpu work
not interested in tripling boot time for gpu access
I would never pick up the device again if it took that long to boot
hdmi hdmi
prevent sleep (auto or manual) when on hdmi (or turn off mirroring?)
minarch menu minarch menu
need to figure out how to create a 4:3 thumb from a distorted framebuffer need to figure out how to create a 4:3 thumb from a distorted framebuffer
should be able to reconstruct it with screen->w|h and renderer.(src|dst)_(w|h) should be able to reconstruct it with screen->w|h and renderer.(src|dst)_(w|h)
just need to downsample to a cropped region of the source just need to downsample to a cropped region of the source
ignore brightness shortcut when on hdmi ignore brightness shortcut when on hdmi
still getting through somehow... still getting through somehow...
audio audio
usb contollers
create a clean image to flash and install over create a clean image to flash and install over
advanced users seem to be confused about how simple it is to install :sweat_smile: advanced users seem to be confused about how simple it is tow install :sweat_smile:
this might be difficult with the gpio revs on newer devices this might be difficult with the gpio revs on newer devices
@ -70,8 +75,6 @@ checkout eggs tools
I wonder if I could patch in Commander-11, BPreplayBold is too bold at that size I wonder if I could patch in Commander-11, BPreplayBold is too bold at that size
cores cores
pce
disable Alternate Turbo Hotkey (we don't have L3/R3)
vb vb
launching directly into native scaling has normal performance launching directly into native scaling has normal performance
but launching into aspect and switching to native tanks the framerate but launching into aspect and switching to native tanks the framerate