Rework palette screen to be better usable

* RGB sliders are twice as high as before (128 pixels)
* Preview area is larger
* Add save/load buttons (not implemented yet)


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2106 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues
2015-03-03 14:11:11 +00:00
parent 810c457483
commit e517902a4b
4 changed files with 96 additions and 80 deletions

View File

@@ -555,7 +555,7 @@ int Menu_shade(void)
// On tagge le bloc
Tag_color_range(first_color,last_color);
// Tracé du bloc dégradé:
Display_grad_block_in_window(172,27,first_color,last_color);
Display_grad_block_in_window(172,27,16,64,first_color,last_color);
}
else
{ // On maintient le click, on va donc tester si le curseur bouge
@@ -567,12 +567,12 @@ int Menu_shade(void)
if (first_color<=temp_color)
{
Tag_color_range(first_color,last_color);
Display_grad_block_in_window(172,27,first_color,last_color);
Display_grad_block_in_window(172,27,16,64,first_color,last_color);
}
else
{
Tag_color_range(last_color,first_color);
Display_grad_block_in_window(172,27,last_color,first_color);
Display_grad_block_in_window(172,27,16,64,last_color,first_color);
}
}
}
@@ -970,7 +970,7 @@ int Menu_shade(void)
// On tagge le bloc
Tag_color_range(first_color,last_color);
// Tracé du bloc dégradé:
Display_grad_block_in_window(172,27,first_color,last_color);
Display_grad_block_in_window(172,27,16,64,first_color,last_color);
// On affiche le numéro de la couleur sélectionnée
Display_selected_color(first_color,last_color);