Save transparent background of Brushes
see http://pulkomandy.tk/projects/GrafX2/ticket/70
This commit is contained in:
parent
84242cef78
commit
bd581c7a90
@ -3210,7 +3210,7 @@ void Save_GIF(T_IO_Context * context)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Layered image
|
// Layered image or brush
|
||||||
disposal_method = DISPOSAL_METHOD_DO_NOT_DISPOSE;
|
disposal_method = DISPOSAL_METHOD_DO_NOT_DISPOSE;
|
||||||
if (current_layer==0)
|
if (current_layer==0)
|
||||||
GCE.Packed_fields=(disposal_method<<2)|(context->Background_transparent);
|
GCE.Packed_fields=(disposal_method<<2)|(context->Background_transparent);
|
||||||
|
|||||||
@ -1369,9 +1369,8 @@ void Init_context_brush(T_IO_Context * context, char *file_name, char *file_dire
|
|||||||
context->Width = Brush_width;
|
context->Width = Brush_width;
|
||||||
context->Height = Brush_height;
|
context->Height = Brush_height;
|
||||||
context->Nb_layers = 1;
|
context->Nb_layers = 1;
|
||||||
// Solid save... could use BG color maybe
|
context->Transparent_color=Back_color; // Transparent color for brushes
|
||||||
context->Transparent_color=0;
|
context->Background_transparent=1;
|
||||||
context->Background_transparent=0;
|
|
||||||
context->Ratio=PIXEL_SIMPLE;
|
context->Ratio=PIXEL_SIMPLE;
|
||||||
context->Target_address=Brush;
|
context->Target_address=Brush;
|
||||||
context->Pitch=Brush_width;
|
context->Pitch=Brush_width;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user