Skip to content

Commit

Permalink
increased zoom limit
Browse files Browse the repository at this point in the history
  • Loading branch information
segfaultdev committed May 12, 2022
1 parent 203aeb7 commit f4f7c27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -1759,7 +1759,7 @@ int main(int argc, const char **argv) {
x += tile_x;
y += tile_y;

if (IsKeyPressed(KEY_S) && zoom < 16) {
if (IsKeyPressed(KEY_S) && zoom < 32) {
set_zoom(zoom + 1);
} else if (IsKeyReleased(KEY_A) && zoom > 1) {
set_zoom(zoom - 1);
Expand Down Expand Up @@ -1946,7 +1946,7 @@ int main(int argc, const char **argv) {
DrawText("Z+", view_width - 300, 86, 20, WHITE);

if (IsMouseButtonPressed(MOUSE_BUTTON_LEFT) && GetMouseX() >= view_width - 308 && GetMouseX() < view_width - 268 && GetMouseY() >= 80 && GetMouseY() < 110) {
if (zoom < 16) set_zoom(zoom + 1);
if (zoom < 32) set_zoom(zoom + 1);
}

DrawRectangle(view_width - 264, 80, 40, 30, WHITE);
Expand Down

0 comments on commit f4f7c27

Please sign in to comment.