fixed SDL backend
authorJohn Tsiombikas <nuclear@member.fsf.org>
Wed, 4 Mar 2020 14:44:01 +0000 (16:44 +0200)
committerJohn Tsiombikas <nuclear@member.fsf.org>
Wed, 4 Mar 2020 14:44:01 +0000 (16:44 +0200)
src/game.h
src/sdl/main.c

index d247799..fa94d7a 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef GAME_H_
 #define GAME_H_
 
-#define FB_BPP 8
+#define FB_BPP 16
 
 extern int fb_width;
 extern int fb_height;
index 9b109c8..52b9aa7 100644 (file)
@@ -103,7 +103,7 @@ void blit_frame(void *pixels, int vsync)
                SDL_LockSurface(fbsurf);
        }
 
-       sptr = fb_pixels;
+       sptr = pixels;
        dptr = (unsigned short*)fbsurf->pixels + (fbsurf->w - xsz) / 2;
        for(i=0; i<FB_HEIGHT; i++) {
                for(j=0; j<FB_WIDTH; j++) {