Show palette in preview (instead of image) when loading palette !

This commit is contained in:
Thomas Bernard
2018-01-23 10:38:55 +01:00
parent abe7a8cb59
commit 207e487d99
4 changed files with 15 additions and 3 deletions

View File

@@ -2171,6 +2171,8 @@ byte Button_Load_or_Save(T_Selector_settings *settings, byte load, T_IO_Context
Init_context_preview(&preview_context, Selector_filename, Selector->Directory);
Hide_cursor();
if (context->Type == CONTEXT_PALETTE)
preview_context.Type = CONTEXT_PREVIEW_PALETTE;
Load_image(&preview_context);
Destroy_context(&preview_context);