From 4396a117c7d6d75cbe884a2d1f942d2dee703cf8 Mon Sep 17 00:00:00 2001 From: damdoum Date: Fri, 26 Jan 2007 13:19:38 +0000 Subject: [PATCH] windows were not properly handled --- desmume/src/MMU.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/desmume/src/MMU.c b/desmume/src/MMU.c index 9ffd9fb6c..d5afccfbe 100644 --- a/desmume/src/MMU.c +++ b/desmume/src/MMU.c @@ -1575,6 +1575,30 @@ void FASTCALL MMU_write16(u32 proc, u32 adr, u16 val) case REG_DISPB_MASTERBRIGHT: if(proc == ARMCPU_ARM9) GPU_setMASTER_BRIGHT (SubScreen.gpu, val); break; + case REG_DISPA_WIN0H: + if(proc == ARMCPU_ARM9) GPU_setWINDOW_XDIM(MainScreen.gpu,val,0) ; + break ; + case REG_DISPA_WIN1H: + if(proc == ARMCPU_ARM9) GPU_setWINDOW_XDIM(MainScreen.gpu,val,1) ; + break ; + case REG_DISPB_WIN0H: + if(proc == ARMCPU_ARM9) GPU_setWINDOW_XDIM(SubScreen.gpu,val,0) ; + break ; + case REG_DISPB_WIN1H: + if(proc == ARMCPU_ARM9) GPU_setWINDOW_XDIM(SubScreen.gpu,val,1) ; + break ; + case REG_DISPA_WIN0V: + if(proc == ARMCPU_ARM9) GPU_setWINDOW_YDIM(MainScreen.gpu,val,0) ; + break ; + case REG_DISPA_WIN1V: + if(proc == ARMCPU_ARM9) GPU_setWINDOW_YDIM(MainScreen.gpu,val,1) ; + break ; + case REG_DISPB_WIN0V: + if(proc == ARMCPU_ARM9) GPU_setWINDOW_YDIM(SubScreen.gpu,val,0) ; + break ; + case REG_DISPB_WIN1V: + if(proc == ARMCPU_ARM9) GPU_setWINDOW_YDIM(SubScreen.gpu,val,1) ; + break ; case REG_DISPA_WININ: if(proc == ARMCPU_ARM9) GPU_setWINDOW_INCNT(MainScreen.gpu, val) ; break ;