From 73b541a2c78f2afeadda43af4a62829855318b46 Mon Sep 17 00:00:00 2001 From: zeromus Date: Tue, 3 Feb 2009 00:06:34 +0000 Subject: [PATCH] fix the lurking issue that made alpha permanently break after loading a savestate. astounding, yes, but true. this MUST make it into 0.9.1 --- desmume/src/MMU.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/desmume/src/MMU.cpp b/desmume/src/MMU.cpp index 1ed4a5680..7d618a7ad 100644 --- a/desmume/src/MMU.cpp +++ b/desmume/src/MMU.cpp @@ -1573,12 +1573,14 @@ static void FASTCALL _MMU_ARM9_write08(u32 adr, u8 val) { u32 &disp3dcnt = MainScreen.gpu->dispx_st->dispA_DISP3DCNT.val; disp3dcnt = (disp3dcnt&0xFF00) | val; + gfx3d_Control(disp3dcnt); break; } case REG_DISPA_DISP3DCNT+1: { u32 &disp3dcnt = MainScreen.gpu->dispx_st->dispA_DISP3DCNT.val; disp3dcnt = (disp3dcnt&0x00FF) | (val<<8); + gfx3d_Control(disp3dcnt); break; } @@ -1797,6 +1799,7 @@ static void FASTCALL _MMU_ARM9_write16(u32 adr, u16 val) case REG_DISPA_DISP3DCNT: { MainScreen.gpu->dispx_st->dispA_DISP3DCNT.val = val; + gfx3d_Control(val); break; }