Change rendering system to use function pointers, see Issue 31 c38 : preliminary work to make the same executable handle Layers or Anims. Fixed an old issue where Lasso-ing a brush with right mouse button wouldn't erase cleanly (visual). Fixed an old issue where picking colors in layer 5 would not 'see' through layers.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1906 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
@@ -192,7 +192,11 @@ void Tilemap_draw(word x, word y, byte color)
|
||||
yy = (tile / Main_tilemap_width)*Snap_height+Snap_offset_Y + Snap_height - rel_y - 1;
|
||||
break;
|
||||
}
|
||||
Pixel_in_current_screen(xx,yy,color,yy>=Limit_top&&yy<=Limit_bottom&&xx>=Limit_left&&xx<=Limit_right);
|
||||
if (yy>=Limit_top&&yy<=Limit_bottom&&xx>=Limit_left&&xx<=Limit_right)
|
||||
Pixel_in_current_screen_with_preview(xx,yy,color);
|
||||
else
|
||||
Pixel_in_current_screen(xx,yy,color);
|
||||
|
||||
tile = Main_tilemap[tile].Next;
|
||||
} while (tile != first_tile);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user