Layer-specific: Fixed possible double free on exit. Removed unused global pointer. Implemented proper backup (history) before the various Copy-to-spare actions, fixing a severe history bug when using layers (issue 270). Grafx2 no longer asks 'Spare page was modified, continue?' on Spare modifications. Fixed missing screen refresh in Copy-to-spare (issue 293). Fixed the save-on-crash to actually save the spare
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1282 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
2
misc.c
2
misc.c
@@ -293,7 +293,7 @@ byte Read_pixel_from_spare_screen(word x,word y)
|
||||
// Clipping is required as this can be called with coordinates from main image
|
||||
// (can be a bigger or smaller image)
|
||||
if (x>=Spare_image_width || y>=Spare_image_height)
|
||||
return 0; // TODO: we could return the spare's transparent color, if it has one.
|
||||
return Spare_backups->Pages->Transparent_color;
|
||||
#ifndef NOLAYERS
|
||||
return *(Spare_visible_image.Image + y*Spare_image_width + x);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user