First svn commit of the experiment with layers. Preemptive backup (to shorten delay before drawing) is currently disabled. Basic Undo/Redo works, but not image resizing, the adjust tool, and saving (not even flattened)
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1039 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
@@ -154,7 +154,7 @@ void Pixel_load_in_current_screen(word x_pos,word y_pos,byte color)
|
||||
{
|
||||
//if ((x_pos>=0) && (y_pos>=0)) //Toujours vrai ?
|
||||
if ((x_pos<Main_image_width) && (y_pos<Main_image_height))
|
||||
Pixel_in_current_screen(x_pos,y_pos,color);
|
||||
Pixel_in_current_screen(x_pos,y_pos,color,0);
|
||||
}
|
||||
|
||||
|
||||
@@ -343,7 +343,7 @@ void Init_preview_24b(short width,short height,long size,int format)
|
||||
|
||||
// Allocate 24bit buffer
|
||||
Buffer_image_24b=
|
||||
(T_Components *)Borrow_memory_from_page(width*height*sizeof(T_Components));
|
||||
(T_Components *)malloc(width*height*sizeof(T_Components));
|
||||
if (!Buffer_image_24b)
|
||||
{
|
||||
// Print an error message
|
||||
|
||||
Reference in New Issue
Block a user