From 57ef392c039269ff3b26f20c2db1a081c30616a7 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Sun, 18 Nov 2018 23:15:09 +0100 Subject: [PATCH] contextual Help for C64 saving --- src/helpfile.h | 12 ++++++++++++ src/miscfileformats.c | 7 ++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/helpfile.h b/src/helpfile.h index 1b94bf57..a12b4226 100644 --- a/src/helpfile.h +++ b/src/helpfile.h @@ -2216,6 +2216,18 @@ static const T_Help_table helptable_save[] = HELP_TEXT ("The TO7, TO7/70 and MO5 only support the") HELP_TEXT ("40col mode with 8 (TO7) or 16 (TO7/70 and") HELP_TEXT ("MO5) colors.") + HELP_TEXT ("") + HELP_TEXT ("") + HELP_TITLE("COMMODORE 64 FORMATS") + HELP_TEXT ("GrafX2 supports saving of :") + HELP_TEXT ("- hi-res (320x200) 2 colors in each 8x8block") + HELP_TEXT ("- multicolor (160x200) 4 colors in each 4x8") + HELP_TEXT (" block, with a common background color") + HELP_TEXT ("- FLI (Flexible Line Interpretation) based") + HELP_TEXT (" on multicolor with in each 4x1 block :") + HELP_TEXT (" 1 background color common to the line,") + HELP_TEXT (" 1 color common for the 4x8 block and") + HELP_TEXT (" 2 specific colors.") }; static const T_Help_table helptable_load[] = { diff --git a/src/miscfileformats.c b/src/miscfileformats.c index 9b03279a..0ab45725 100644 --- a/src/miscfileformats.c +++ b/src/miscfileformats.c @@ -3045,7 +3045,12 @@ static int Save_C64_window(enum c64_format *saveFormat, byte *saveWhat, byte *lo do { button = Window_clicked_button(); - switch(button) + if (Is_shortcut(Key, 0x100+BUTTON_HELP)) + { + Key = 0; + Window_help(BUTTON_SAVE, "COMMODORE 64 FORMATS"); + } + else switch(button) { case 3: // Save what *saveWhat = Window_attribute2;