Animation now has correct visual display and input feedback. Loading GIF guesses it's an anim if it loops, layers otherwise : Some rare non-looping GIF anims (usaully broken) will be misunderstood as layered. Editing of anims and layers seems flawless and stable. Still requires an auto-switch to the best toolbar (anim/layers) when relevant, but you can already switch manually.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1910 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
14
src/misc.c
14
src/misc.c
@@ -303,12 +303,14 @@ byte Read_pixel_from_spare_screen(word x,word y)
|
||||
// (can be a bigger or smaller image)
|
||||
if (x>=Spare_image_width || y>=Spare_image_height)
|
||||
return Spare_backups->Pages->Transparent_color;
|
||||
#ifndef NOLAYERS
|
||||
return *(Spare_visible_image.Image + y*Spare_image_width + x);
|
||||
#else
|
||||
return *(Spare_backups->Pages->Image[Spare_current_layer].Pixels + y*Spare_image_width + x);
|
||||
#endif
|
||||
|
||||
if (Spare_backups->Pages->Image_mode == IMAGE_MODE_ANIMATION)
|
||||
{
|
||||
return *(Spare_backups->Pages->Image[Spare_current_layer].Pixels + y*Spare_image_width + x);
|
||||
}
|
||||
else
|
||||
{
|
||||
return *(Spare_visible_image.Image + y*Spare_image_width + x);
|
||||
}
|
||||
}
|
||||
|
||||
void Rotate_90_deg_lowlevel(byte * source, byte * dest, short width, short height)
|
||||
|
||||
Reference in New Issue
Block a user