X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Feditor.c;h=ce97227216f0e26d7a28180a7db03b234bc8d47e;hb=ba4235954c2f507e24bcffa0faa3fc02266da3a2;hp=d2e86eb9cd03982597207892e2ed726bc18ffac2;hpb=a641433815411c71d75ee47a73a44d0e4b422e60;p=rocksndiamonds.git diff --git a/src/editor.c b/src/editor.c index d2e86eb9..ce972272 100644 --- a/src/editor.c +++ b/src/editor.c @@ -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);