fixed (swapped) editor fonts for CE properties tab buttons
[rocksndiamonds.git] / src / editor.c
index d2e86eb9cd03982597207892e2ed726bc18ffac2..ce97227216f0e26d7a28180a7db03b234bc8d47e 100644 (file)
@@ -5891,8 +5891,8 @@ static void CreateTextbuttonGadgets()
                      GDI_TYPE, GD_TYPE_TEXT_BUTTON,
                      GDI_TEXT_VALUE, textbutton_info[i].text,
                      GDI_TEXT_SIZE, textbutton_info[i].size,
-                     GDI_TEXT_FONT, FONT_INPUT_2_ACTIVE,
-                     GDI_TEXT_FONT_ACTIVE, FONT_INPUT_2,
+                     GDI_TEXT_FONT, FONT_INPUT_2,
+                     GDI_TEXT_FONT_ACTIVE, FONT_INPUT_2_ACTIVE,
                      GDI_DESIGN_UNPRESSED, gd->bitmap, gd_x1, gd_y1,
                      GDI_DESIGN_PRESSED, gd->bitmap, gd_x2, gd_y2,
                      GDI_ALT_DESIGN_UNPRESSED, gd->bitmap, gd_x1a, gd_y1a,
@@ -11331,9 +11331,9 @@ static void HandleControlButtons(struct GadgetInfo *gi)
 
     case GADGET_ID_ZOOM:
       // zoom level editor tile size in or out (or reset to default size)
-      ed_tilesize = (button == 1 ? ed_tilesize / 2 :
+      ed_tilesize = (button == 1 ? ed_tilesize * 2 :
                     button == 2 ? DEFAULT_EDITOR_TILESIZE :
-                    button == 3 ? ed_tilesize * 2 : ed_tilesize);
+                    button == 3 ? ed_tilesize / 2 : ed_tilesize);
 
       // limit zoom level by upper and lower bound
       ed_tilesize = MIN(MAX(MICRO_TILESIZE, ed_tilesize), TILESIZE);