Tilemap mode improved to analyze and detect identical tiles, so you write in real time on all occurences of same tile. Works very well but unfinished, will crash or have other problems when you resize image
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1859 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
@@ -2748,11 +2748,7 @@ void Display_pixel(word x,word y,byte color)
|
||||
color=Effect_function(x,y,color);
|
||||
if (Tilemap_mode)
|
||||
{
|
||||
int xx,yy;
|
||||
for (yy=(y-Snap_offset_Y)%Snap_height+Snap_offset_Y;yy<Main_image_height;yy+=Snap_height)
|
||||
for (xx=(x-Snap_offset_X)%Snap_width+Snap_offset_X;xx<Main_image_width;xx+=Snap_width)
|
||||
Pixel_in_current_screen(xx,yy,color,yy>=Limit_top&&yy<=Limit_bottom&&xx>=Limit_left&&xx<=Limit_right);
|
||||
Update_rect(0,0,0,0);
|
||||
Tilemap_draw(x,y, color);
|
||||
}
|
||||
else
|
||||
Pixel_in_current_screen(x,y,color,1);
|
||||
|
||||
Reference in New Issue
Block a user