Fix a mouse dropping remaining when clicking layer color. Made the button pick current transp color when left-clicking, and set it on right-click.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1201 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
16
layers.c
16
layers.c
@@ -159,7 +159,7 @@ void Button_Layer_menu(void)
|
||||
Display_cursor();
|
||||
}
|
||||
|
||||
void Button_Layer_color(void)
|
||||
void Button_Layer_set_transparent(void)
|
||||
{
|
||||
Hide_cursor();
|
||||
|
||||
@@ -170,7 +170,6 @@ void Button_Layer_color(void)
|
||||
|
||||
Redraw_layered_image();
|
||||
Display_all_screen();
|
||||
Display_cursor();
|
||||
End_of_modification();
|
||||
}
|
||||
|
||||
@@ -178,6 +177,19 @@ void Button_Layer_color(void)
|
||||
Display_cursor();
|
||||
}
|
||||
|
||||
void Button_Layer_get_transparent(void)
|
||||
{
|
||||
Hide_cursor();
|
||||
|
||||
if (Main_backups->Pages->Transparent_color != Back_color)
|
||||
{
|
||||
Set_back_color(Main_backups->Pages->Transparent_color);
|
||||
}
|
||||
|
||||
Unselect_button(BUTTON_LAYER_COLOR);
|
||||
Display_cursor();
|
||||
}
|
||||
|
||||
void Button_Layer_merge(void)
|
||||
{
|
||||
Hide_cursor();
|
||||
|
||||
Reference in New Issue
Block a user