From 540cc064eb5856f1386a7950062542a9ee69f99f Mon Sep 17 00:00:00 2001 From: cyberwarriorx Date: Thu, 11 Jan 2007 18:33:32 +0000 Subject: [PATCH] -Fixed another case of people declaring variables in the middle of a function. Whoever is doing it, please -stop-. --- desmume/src/GPU.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/desmume/src/GPU.h b/desmume/src/GPU.h index cc5c4dca7..759fef090 100644 --- a/desmume/src/GPU.h +++ b/desmume/src/GPU.h @@ -417,6 +417,10 @@ static INLINE void GPU_ligne(Screen * screen, u16 l) u8 i8; u16 i16; u32 c; + u8 pixelsForPrio[4][256]; + u8 nbPixelsForPrio[4] = {0,0,0,0}; + u8 n,p; + /* initialize the scanline black */ /* not doing this causes invalid colors when all active BGs are prevented to draw at some place */ memset(dst,0,256*2) ; @@ -473,9 +477,6 @@ static INLINE void GPU_ligne(Screen * screen, u16 l) } } -u8 pixelsForPrio[4][256]; -u8 nbPixelsForPrio[4] = {0,0,0,0}; -u8 n,p; // for all the pixels in the line for(i= 0; i<256; i++) { // assign them to the good priority table