More code documentation in global.h

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@702 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2009-03-28 18:42:34 +00:00
parent 663229efb3
commit fb24a9ae67
3 changed files with 203 additions and 108 deletions

View File

@@ -1145,15 +1145,17 @@ void Copy_some_colors(void)
{
short index;
byte confirmation=0;
static byte mask_color_to_copy[256]; // static to use less stack
Menu_tag_colors("Tag colors to copy",Mask_color_to_copy,&confirmation,0, NULL);
memset(mask_color_to_copy,1,256);
Menu_tag_colors("Tag colors to copy",mask_color_to_copy,&confirmation,0, NULL);
if (confirmation &&
(!Spare_image_is_modified || Confirmation_box("Spare page was modified. Proceed?")))
{
for (index=0; index<256; index++)
{
if (Mask_color_to_copy[index])
if (mask_color_to_copy[index])
memcpy(Spare_palette+index,Main_palette+index,
sizeof(T_Components));
}