From 7f3c6762c79cb9752f4932937e03cc66e3cbc546 Mon Sep 17 00:00:00 2001 From: Harrison <53527582+HTV04@users.noreply.github.com> Date: Sun, 21 Feb 2021 01:51:34 -0500 Subject: [PATCH] Change brightness limit Based on GodMode9's brightness limit, 107. The previous limit was way too dark, especially in sunlight. Even though brightness control hasn't been added yet, I still think it's better to give users the option. --- README.md | 4 ++-- source/arm11/drivers/gfx.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9ad5a0d..765eb16 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ To compile open_agb_firm, the following needs to be installed: * [Corelink DMA-330 assembler](https://github.com/profi200/dma330as) * [CTR firm builder](https://github.com/derrekr/ctr_firm_builder) -Additionally, 7-Zip (or on Linux, p7zip) needs to be installed to make release builds. Also make sure the dma330as and CTR firm builder binaries are in the $PATH environment variable and accessible to the Makefile. Build open_agb_firm as a debug build via `make` or as a release build via `make release`. +Additionally, 7-Zip (or on Linux, p7zip) needs to be installed to make release builds. Also, make sure that the dma330as and CTR firm builder binaries are in the $PATH environment variable and accessible to the Makefile. Build open_agb_firm as a debug build via `make` or as a release build via `make release`. ## How to use The process to set up and launch open_agb_firm is similar that of [GodMode9](https://github.com/d0k3/GodMode9). @@ -35,7 +35,7 @@ Hold the power button to turn off the 3DS. Settings are stored in `/3ds/open_agb_firm/config.ini`. ### General -`u8 backlight` - Backlight brightness (default: `40`, max: `64`) +`u8 backlight` - Backlight brightness (default: `40`, max: `107`) `bool biosIntro` - Show GBA BIOS intro at game startup (default: `true`) diff --git a/source/arm11/drivers/gfx.c b/source/arm11/drivers/gfx.c index 4dff4a5..9031f54 100644 --- a/source/arm11/drivers/gfx.c +++ b/source/arm11/drivers/gfx.c @@ -380,7 +380,7 @@ void GFX_powerOffBacklights(GfxBlight mask) void GFX_setBrightness(u8 top, u8 bot) { - if(top > 64 || bot > 64) return; + if(top > 107 || bot > 107) return; g_gfxState.lcdLights[0] = top; g_gfxState.lcdLights[1] = bot;