From 4355b8b2d5ca6af7e8f3d1daff14fe6b7149e8b0 Mon Sep 17 00:00:00 2001 From: Simon Date: Tue, 7 Dec 2010 21:48:03 +0000 Subject: [PATCH] Fix for prerender save and fan drawing --- includes/defines.h | 2 +- src/graphics.c | 22 ++++++++++++++-------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/includes/defines.h b/includes/defines.h index e26f98a0d..98cf15d47 100644 --- a/includes/defines.h +++ b/includes/defines.h @@ -8,7 +8,7 @@ #endif #define SAVE_VERSION 44 -#define MINOR_VERSION 4 +#define MINOR_VERSION 5 #define IDENT_VERSION "G" //Change this if you're not Simon! It should be a single letter. //#define BETA diff --git a/src/graphics.c b/src/graphics.c index 65ffaac45..73e88be0a 100644 --- a/src/graphics.c +++ b/src/graphics.c @@ -2795,12 +2795,18 @@ pixel *prerender_save(void *save, int size, int *width, int *height) if(!(j%2) && !(i%2)) fb[(ry+j)*w+(rx+i)] = PIXPACK(0xC0C0C0); break; - case 4: - for(j=0; j>1)&1; i>1)&1; i>1)&1; i>1)&1; i0) { - /*if(j==PT_STKM) //Stickman should be drawed another way //Was crashing TODO: FIX + if(j==PT_STKM) { //Stickman drawing for(k=-2; k<=1; k++) @@ -2850,7 +2856,7 @@ pixel *prerender_save(void *save, int size, int *width, int *height) draw_line(fb , x, y+3, x+1, y+6, 255, 255, 255, w); draw_line(fb , x+1, y+6, x+3, y+12, 255, 255, 255, w); } - else*/ + else fb[y*w+x] = ptypes[j].pcolors; } }