From a2679c5ee724df070aae7e19e2af0f964fb6f6be Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sun, 15 Oct 2017 20:38:10 +0200 Subject: [PATCH] moved two functions to different position in source file --- src/editor.c | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/editor.c b/src/editor.c index 71304ba0..cfcf8288 100644 --- a/src/editor.c +++ b/src/editor.c @@ -8660,6 +8660,24 @@ static void DrawPropertiesTabulatorGadgets() getTabulatorBarWidth(), getTabulatorBarHeight(), tab_color); } +static void PrintInfoText(char *text, int font_nr, int xpos, int ypos) +{ + DrawText(SX + xpos, SY + ypos, text, font_nr); +} + +static int PrintElementDescriptionFromFile(char *filename, int font_nr, + int xpos, int ypos) +{ + int font_width = getFontWidth(font_nr); + int font_height = getFontHeight(font_nr); + int max_chars_per_line = (SXSIZE - 2 * xpos) / font_width; + int max_lines_drawable = (SYSIZE - ypos) / font_height - 1; + + return DrawTextFile(SX + xpos, SY + ypos, filename, font_nr, + max_chars_per_line, -1, max_lines_drawable, 0, -1, + TRUE, FALSE, FALSE); +} + static void DrawLevelInfoLevel() { int i; @@ -8947,24 +8965,6 @@ static void DrawEnvelopeTextArea(int envelope_nr) MapTextAreaGadget(ED_TEXTAREA_ID_ENVELOPE_INFO); } -static void PrintInfoText(char *text, int font_nr, int xpos, int ypos) -{ - DrawText(SX + xpos, SY + ypos, text, font_nr); -} - -static int PrintElementDescriptionFromFile(char *filename, int font_nr, - int xpos, int ypos) -{ - int font_width = getFontWidth(font_nr); - int font_height = getFontHeight(font_nr); - int max_chars_per_line = (SXSIZE - 2 * xpos) / font_width; - int max_lines_drawable = (SYSIZE - ypos) / font_height - 1; - - return DrawTextFile(SX + xpos, SY + ypos, filename, font_nr, - max_chars_per_line, -1, max_lines_drawable, 0, -1, - TRUE, FALSE, FALSE); -} - static void DrawPropertiesInfo() { static struct -- 2.34.1