From a38b7336e65c9a5770799bfcd578b72f808461cd Mon Sep 17 00:00:00 2001 From: Yves Rizoud Date: Sun, 7 Nov 2010 21:57:15 +0000 Subject: [PATCH] Fix help screens: since r1532, short texts were padded with a black rectangle on top instead of bottom. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1646 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- src/help.c | 2 +- src/helpfile.h | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/help.c b/src/help.c index ab8b8333..6f7a7ef5 100644 --- a/src/help.c +++ b/src/help.c @@ -344,7 +344,7 @@ void Display_help(void) if (line_index >= Help_section[Current_help_section].Length) { Window_rectangle (x_pos, - y_pos, + y_pos + line_index*8, 44*6, // 44 = Nb max de char (+1 pour éviter les plantages en mode X // causés par une largeur = 0) diff --git a/src/helpfile.h b/src/helpfile.h index 4e372014..0c2461ea 100644 --- a/src/helpfile.h +++ b/src/helpfile.h @@ -65,12 +65,6 @@ static const T_Help_table helptable_about[] = HELP_TEXT ("") HELP_TEXT ("Copyright 2007-2010, the Grafx2 project team") HELP_TEXT (" Copyright 1996-2001, SUNSET DESIGN") - HELP_TEXT ("") - HELP_TEXT ("") - HELP_TEXT ("") - HELP_TEXT ("") - // Keep enough empty lines to ensure the 16-line screen is fully redrawn. - // HELP_TITLE counts for 2. }; static const T_Help_table helptable_licence[] = {