changeset 497:690811e54b51

reversed pixel image.
author Robert McIntyre <rlm@mit.edu>
date Mon, 11 Jun 2012 06:19:38 -0500
parents a6d060a64246
children 554883a95de0
files src/gb/GB.cpp
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
     1.1 --- a/src/gb/GB.cpp	Mon Jun 11 06:04:25 2012 -0500
     1.2 +++ b/src/gb/GB.cpp	Mon Jun 11 06:19:38 2012 -0500
     1.3 @@ -3890,6 +3890,8 @@
     1.4  
     1.5    int sizeX = w;
     1.6    int sizeY = h;
     1.7 +  
     1.8 +  store += w * (h - 1); 
     1.9  
    1.10    u32 *pixU32 = (u32 *)(pix + 4 * (w + 1) * (h));
    1.11    for (int y = 0; y < sizeY; y++)
    1.12 @@ -3905,6 +3907,7 @@
    1.13  	  int32 rgb = (r << 16 ) + (g << 8) + b;
    1.14  	  *store++ = rgb;
    1.15  	}
    1.16 +      store -= (2 * w);
    1.17        pixU32++;
    1.18        pixU32 -= 2 * (w + 1);
    1.19      }