More fixes on layer preview. Layer buttons now activate on click instead of release.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1937 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2012-03-25 14:23:50 +00:00
parent cd5b3346b0
commit 2e5b97eb41
3 changed files with 82 additions and 91 deletions

View File

@@ -178,6 +178,7 @@ void Button_Layer_select(void)
{
short layer = Layer_under_mouse();
Layer_activate(layer, LEFT_SIDE);
Mouse_K=0;
}
void Button_Layer_toggle(void)
@@ -194,6 +195,7 @@ void Button_Layer_toggle(void)
layer=Main_backups->Pages->Nb_layers-1;
Layer_activate(layer, RIGHT_SIDE);
Mouse_K=0;
}
static void Draw_transparent_color(byte color)