gba-trycatch

diff src/main_sdl.c @ 13:2070a81127f2

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 23 Jun 2014 08:28:28 +0300
parents b0ed38f13261
children
line diff
     1.1 --- a/src/main_sdl.c	Mon Jun 23 06:44:04 2014 +0300
     1.2 +++ b/src/main_sdl.c	Mon Jun 23 08:28:28 2014 +0300
     1.3 @@ -85,6 +85,11 @@
     1.4  		for(i=0; i<HEIGHT; i++) {
     1.5  			for(j=0; j<WIDTH; j++) {
     1.6  				uint16_t pixel = *src++;
     1.7 +				unsigned int red = GET_R(pixel);
     1.8 +				unsigned int green = GET_G(pixel);
     1.9 +				unsigned int blue = GET_B(pixel);
    1.10 +
    1.11 +				pixel = ((blue >> 3) << 11) | ((green >> 2) << 5) | (red >> 3);
    1.12  
    1.13  				for(k=0; k<sdlscale; k++) {
    1.14  					for(l=0; l<sdlscale; l++) {