Display original picture size in Load/Save dialog when displaying a thumbnail

This commit is contained in:
Thomas Bernard
2018-02-21 13:08:57 +01:00
parent 3876f8e1c5
commit b0203ff93c
3 changed files with 16 additions and 6 deletions

View File

@@ -1765,6 +1765,8 @@ printf("%d x %d = %d %d\n", tiny_width, tiny_height, tiny_width*tiny_height, s
if ((context->Type == CONTEXT_PREVIEW || context->Type == CONTEXT_PREVIEW_PALETTE)
&& tiny_width > 0 && tiny_height > 0)
{
context->Original_width = header.Width;
context->Original_height = header.Height;
Pre_load(context, tiny_width, tiny_height,file_size,iff_format,ratio,bpp);
context->Background_transparent = header.Mask == 2;
context->Transparent_color = context->Background_transparent ? header.Transp_col : 0;