From c9573f973d27b81357c148ed3a57d94e576dcd63 Mon Sep 17 00:00:00 2001 From: damdoum Date: Tue, 16 Jan 2007 17:15:40 +0000 Subject: [PATCH] & is binary, && is logical there wasn't any typo (see behavior with window.nds) --- desmume/src/GPU.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/desmume/src/GPU.c b/desmume/src/GPU.c index 1977114a5..9ac69f581 100644 --- a/desmume/src/GPU.c +++ b/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 ; }