X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Feditor.c;h=1b72d69b4a9514921e37e88a2f21d25e06a825ee;hb=3f878a4e9c28dbb09ab2ed13e972aa2f77ef236e;hp=a893b9802d46c1a27fb2895cce1449a884f128cc;hpb=1e942e0a60975fe1d8bbf6c2149cb772600d56f1;p=rocksndiamonds.git diff --git a/src/editor.c b/src/editor.c index a893b980..1b72d69b 100644 --- a/src/editor.c +++ b/src/editor.c @@ -11995,7 +11995,8 @@ void HandleLevelEditorKeyInput(Key key) ClickOnGadget(level_editor_gadget[GADGET_ID_ZOOM], 3); else if (letter == '0' || key == KSYM_KP_0) ClickOnGadget(level_editor_gadget[GADGET_ID_ZOOM], 2); - else if (letter == '+' || key == KSYM_KP_Add) + else if (letter == '+' || key == KSYM_KP_Add || + letter == '=') // ("Shift-=" is "+" on US keyboards) ClickOnGadget(level_editor_gadget[GADGET_ID_ZOOM], 1); else if (key == KSYM_Return || key == KSYM_space || @@ -12050,7 +12051,7 @@ void PrintEditorGadgetInfoText(struct GadgetInfo *gi) char shortcut[MAX_OUTPUT_LINESIZE + 1]; int max_infotext_len = getMaxInfoTextLength(); - if (gi == NULL || gi->info_text == NULL) + if (gi == NULL || strlen(gi->info_text) == 0) return; strncpy(infotext, gi->info_text, max_infotext_len);