moved two functions to different position in source file
[rocksndiamonds.git] / src / editor.c
index 761ff632485f8ebc44968c35d883ca5cf42e6dc0..cfcf828827546e80beea470a71888b148fdcfa13 100644 (file)
@@ -2605,13 +2605,13 @@ static struct
   {
     ED_LEVEL_TABS_XPOS(0),             ED_LEVEL_TABS_YPOS(0),
     GADGET_ID_LEVELINFO_LEVEL,         GADGET_ID_NONE,
-    8,                                 "Level",                        
+    8,                                 "Level",
     NULL, NULL, NULL,                  "Configure level properties"
   },
   {
     -1,                                        -1,
     GADGET_ID_LEVELINFO_EDITOR,                GADGET_ID_LEVELINFO_LEVEL,
-    8,                                 "Editor",                       
+    8,                                 "Editor",
     NULL, NULL, NULL,                  "Configure editor properties"
   },
 
@@ -2620,7 +2620,7 @@ static struct
   {
     ED_ELEMENT_TABS_XPOS(0),           ED_ELEMENT_TABS_YPOS(0),
     GADGET_ID_PROPERTIES_INFO,         GADGET_ID_NONE,
-    8,                                 "Info",                 
+    8,                                 "Info",
     NULL, NULL, NULL,                  "Show information about element"
   },
   {
@@ -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