Fix an issue with the comments in file, was not working (since a recent change?)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1618 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
parent
e4cda09bf2
commit
29b1acc63f
@ -1176,7 +1176,7 @@ byte Button_Load_or_Save(byte load, T_IO_Context *context)
|
|||||||
}
|
}
|
||||||
// Affichage du commentaire
|
// Affichage du commentaire
|
||||||
if (Get_fileformat(Main_format)->Comment)
|
if (Get_fileformat(Main_format)->Comment)
|
||||||
Print_in_window(47,70,context->Comment,MC_Black,MC_Light);
|
Print_in_window(45,70,context->Comment,MC_Black,MC_Light);
|
||||||
}
|
}
|
||||||
|
|
||||||
Window_set_normal_button(253,180,51,14,"Cancel",0,1,KEY_ESC); // 2
|
Window_set_normal_button(253,180,51,14,"Cancel",0,1,KEY_ESC); // 2
|
||||||
|
|||||||
@ -363,12 +363,9 @@ void Pre_load(T_IO_Context *context, short width, short height, long file_size,
|
|||||||
{
|
{
|
||||||
Print_in_window( 59,59,Get_fileformat(format)->Label,MC_Black,MC_Light);
|
Print_in_window( 59,59,Get_fileformat(format)->Label,MC_Black,MC_Light);
|
||||||
}
|
}
|
||||||
|
|
||||||
// On efface le commentaire précédent
|
// On efface le commentaire précédent
|
||||||
Window_rectangle(45,70,32*8,8,MC_Light);
|
Window_rectangle(45,70,32*8,8,MC_Light);
|
||||||
// Affichage du commentaire
|
|
||||||
if (Get_fileformat(format)->Comment)
|
|
||||||
Print_in_window(45,70,Main_comment,MC_Black,MC_Light);
|
|
||||||
|
|
||||||
// Calcul des données nécessaires à l'affichage de la preview:
|
// Calcul des données nécessaires à l'affichage de la preview:
|
||||||
if (ratio == PIXEL_WIDE &&
|
if (ratio == PIXEL_WIDE &&
|
||||||
@ -748,6 +745,9 @@ void Load_image(T_IO_Context *context)
|
|||||||
Main_backups->Pages->Gradients->Range[i].Inverse=context->Cycle_range[i].Inverse;
|
Main_backups->Pages->Gradients->Range[i].Inverse=context->Cycle_range[i].Inverse;
|
||||||
Main_backups->Pages->Gradients->Range[i].Speed=context->Cycle_range[i].Speed;
|
Main_backups->Pages->Gradients->Range[i].Speed=context->Cycle_range[i].Speed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Comment
|
||||||
|
strcpy(Main_comment, context->Comment);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -873,9 +873,14 @@ void Load_image(T_IO_Context *context)
|
|||||||
context->Preview_pos_Y+y_pos,
|
context->Preview_pos_Y+y_pos,
|
||||||
color);
|
color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Refresh modified part
|
// Refresh modified part
|
||||||
Update_window_area(183,95,PREVIEW_WIDTH,PREVIEW_HEIGHT);
|
Update_window_area(183,95,PREVIEW_WIDTH,PREVIEW_HEIGHT);
|
||||||
|
|
||||||
|
// Preview comment
|
||||||
|
Print_in_window(45,70,context->Comment,MC_Black,MC_Light);
|
||||||
|
//Update_window_area(45,70,32*8,8);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user