summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/main.c b/main.c
index ffd5e1b..f0620e4 100644
--- a/main.c
+++ b/main.c
@@ -180,12 +180,12 @@ redraw(void)
r.max.y = r.min.y+1;
for(; r.min.x < bob.spr->r.max.x; r.min.x++){
r.max.x = r.min.x+1;
- p = addpt(r.min,subpt(bob.p, Pt(Dx(bob.spr->r)/2,Dy(bob.spr->r)/2)));
- p = rotatept(p, bob.roll, bob.p);
- toroidwarp(&p);
- if(memcmp(byteaddr(bob.spr, r.min), byteaddr(pal[Cmask], ZP), bob.spr->depth/8) != 0)
-
+ if(memcmp(byteaddr(bob.spr, r.min), byteaddr(pal[Cmask], ZP), bob.spr->depth/8) != 0){
+ p = addpt(r.min,subpt(bob.p, Pt(Dx(bob.spr->r)/2,Dy(bob.spr->r)/2)));
+ p = rotatept(p, bob.roll, bob.p);
+ toroidwarp(&p);
memimagedraw(fb, Rpt(p,addpt(p,Pt(1,1))), bob.spr, r.min, nil, ZP, SoverD);
+ }
}
}
for(r = fb->r; r.min.y < fb->r.max.y; r.min.y++){