diff options
| author | Simon <simon@hardwired.org.uk> | 2010-12-07 21:48:03 (GMT) |
|---|---|---|
| committer | Simon <simon@hardwired.org.uk> | 2010-12-07 21:48:03 (GMT) |
| commit | 4355b8b2d5ca6af7e8f3d1daff14fe6b7149e8b0 (patch) | |
| tree | e6d407ecb76f04993ffaf2a8537e58d33b375288 /src | |
| parent | 9486b96368df5279b560ffb48077481cc31c040a (diff) | |
| download | powder-4355b8b2d5ca6af7e8f3d1daff14fe6b7149e8b0.zip powder-4355b8b2d5ca6af7e8f3d1daff14fe6b7149e8b0.tar.gz | |
Fix for prerender save and fan drawing
Diffstat (limited to 'src')
| -rw-r--r-- | src/graphics.c | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/graphics.c b/src/graphics.c index 65ffaac..73e88be 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<CELL; j+=2) - for(i=(j>>1)&1; i<CELL; i+=2) - fb[(ry+j)*w+(rx+i)] = PIXPACK(0x8080FF); - k++; - break; + case 4: + for(j=0; j<CELL; j+=2) + for(i=(j>>1)&1; i<CELL; i+=2) + fb[(ry+j)*w+(rx+i)] = PIXPACK(0x8080FF); + k++; + break; + case WL_FAN: + for(j=0; j<CELL; j+=2) + for(i=(j>>1)&1; i<CELL; i+=2) + fb[(ry+j)*w+(rx+i)] = PIXPACK(0x8080FF); + k++; + break; case 6: for(j=0; j<CELL; j+=2) for(i=(j>>1)&1; i<CELL; i+=2) @@ -2835,7 +2841,7 @@ pixel *prerender_save(void *save, int size, int *width, int *height) j=d[p++]; if(j<PT_NUM && j>0) { - /*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; } } |
