From fe8b3ac82cbdd95751e77ced4b64dcfdeb8bc918 Mon Sep 17 00:00:00 2001 From: evilynux Date: Tue, 16 Jan 2007 15:55:19 +0000 Subject: [PATCH] Fixed windows/out of windows: was "&" instead of "&&". --- trunk/desmume/src/GPU.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/trunk/desmume/src/GPU.c b/trunk/desmume/src/GPU.c index 9ac69f581..1977114a5 100644 --- a/trunk/desmume/src/GPU.c +++ b/trunk/desmume/src/GPU.c @@ -591,7 +591,7 @@ INLINE BOOL renderline_checkWindowInside(GPU *gpu, u8 bgnum, u16 x, u16 y, BOOL )) { /* is drawing explicit set for this bg in this rectangle ? */ - *draw = gpu->WINDOW_INCNT.windows.win0_en & (1<WINDOW_INCNT.windows.win0_en && (1<WINDOW_INCNT.bits.WIN0_Effect_Enable ; return TRUE ; } @@ -604,7 +604,7 @@ INLINE BOOL renderline_checkWindowInside(GPU *gpu, u8 bgnum, u16 x, u16 y, BOOL )) { /* is drawing explicit set for this bg in this rectangle ? */ - *draw = gpu->WINDOW_INCNT.windows.win1_en & (1<WINDOW_INCNT.windows.win1_en && (1<WINDOW_INCNT.bits.WIN1_Effect_Enable ; return TRUE ; } @@ -629,7 +629,7 @@ INLINE BOOL renderline_checkWindowOutside(GPU *gpu, u8 bgnum, u16 x, u16 y, BOOL )) { /* is drawing explicit set for this bg in this rectangle ? */ - *draw = gpu->WINDOW_OUTCNT.windows.win0_en & (1<WINDOW_OUTCNT.windows.win0_en && (1<WINDOW_OUTCNT.bits.WIN0_Effect_Enable ; return TRUE ; } @@ -642,7 +642,7 @@ INLINE BOOL renderline_checkWindowOutside(GPU *gpu, u8 bgnum, u16 x, u16 y, BOOL )) { /* is drawing explicit set for this bg in this rectangle ? */ - *draw = gpu->WINDOW_OUTCNT.windows.win1_en & (1<WINDOW_OUTCNT.windows.win1_en && (1<WINDOW_OUTCNT.bits.WIN1_Effect_Enable ; return TRUE ; }