From f49f0326884f586cb53e09dcb5ea404a5abe8c5f Mon Sep 17 00:00:00 2001 From: mightymax Date: Sun, 28 Jan 2007 19:59:59 +0000 Subject: [PATCH] disabled LuT creation when not using LuT --- desmume/src/GPU.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/desmume/src/GPU.c b/desmume/src/GPU.c index 128096cc3..0098af238 100644 --- a/desmume/src/GPU.c +++ b/desmume/src/GPU.c @@ -1513,7 +1513,7 @@ void calc_bright_colors() { #undef FORMULA_LESS } -void GPU_ligne(Screen * screen, u16 l) +void __fastcall GPU_ligne(Screen * screen, u16 l) { struct _DISPCAPCNT * capcnt; GPU * gpu = screen->gpu; @@ -1727,8 +1727,10 @@ void GPU_ligne(Screen * screen, u16 l) /* Mightymax> it should be more effective if the windowmanager applies brightness when drawing */ /* it will most likly take acceleration, while we are stuck here with CPU power */ +#ifdef BRIGHT_TABLES + /* do you really want to recalculate 2^19 entries of 2 bytes for 256 entries in single line???? */ calc_bright_colors(); - +#endif switch (gpu->masterBright.bits.Mode) { // Disabled