- fix master bright (use only in EngineA);
This commit is contained in:
mtabachenko 2008-11-30 17:09:55 +00:00
parent e708fde3b3
commit e5a0463b14
1 changed files with 6 additions and 4 deletions

View File

@ -2213,10 +2213,10 @@ static INLINE void GPU_ligne_DispCapture(u16 l)
} }
} }
static INLINE void GPU_ligne_Brightness(NDS_Screen * screen, u16 l) static INLINE void GPU_ligne_Brightness(u16 l)
{ {
GPU * gpu = screen->gpu; GPU * gpu = MainScreen.gpu;
u8 * dst = GPU_screen + (screen->offset + l) * 512; u8 * dst = GPU_screen + (MainScreen.offset + l) * 512;
u16 i16; u16 i16;
#ifndef HAVE_LIBGDKGLEXT_X11_1_0 #ifndef HAVE_LIBGDKGLEXT_X11_1_0
// damdoum : // damdoum :
@ -2375,8 +2375,10 @@ void GPU_ligne(NDS_Screen * screen, u16 l)
} }
if (gpu->core == GPU_MAIN) if (gpu->core == GPU_MAIN)
{
GPU_ligne_DispCapture(l); GPU_ligne_DispCapture(l);
GPU_ligne_Brightness(screen, l); GPU_ligne_Brightness(l);
}
} }
void gpu_savestate(std::ostream* os) void gpu_savestate(std::ostream* os)