From eedb20b3501964be90094889a357739a71323ae0 Mon Sep 17 00:00:00 2001 From: zeromus Date: Mon, 23 Mar 2009 18:05:49 +0000 Subject: [PATCH] another fix for cross of venus, which should now display from boot-up. this is part of a nest of evil that has been opened up due to needing to support the rendering of 2d graphics even while display mode is `off` or `vram framebuffer` or `main ram from fifo` so we will need to keep our eyes peeled for games whose display modes are totally broken due to this. it should be easy to straighten out. --- desmume/src/GPU.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/desmume/src/GPU.cpp b/desmume/src/GPU.cpp index a640b01a7..50df8986a 100644 --- a/desmume/src/GPU.cpp +++ b/desmume/src/GPU.cpp @@ -454,16 +454,16 @@ void GPU_setVideoProp(GPU * gpu, u32 p) switch (gpu->dispMode) { case 0: // Display Off - return; + break; case 1: // Display BG and OBJ layers break; case 2: // Display framebuffer gpu->VRAMaddr = (u8 *)ARM9Mem.ARM9_LCD + (gpu->vramBlock * 0x20000); - return; + break; case 3: // Display from Main RAM // nothing to be done here // see GPU_ligne who gets data from FIFO. - return; + break; } if(cnt->OBJ_Tile_mapping)