Skip to content

Commit

Permalink
Merge pull request #80 from savaughn/77-confirmation-modal-width-is-i…
Browse files Browse the repository at this point in the history
…ncorrect

v0.6.1-hotfix: fixed broken modal width
  • Loading branch information
savaughn authored Nov 8, 2023
2 parents 3c71944 + 6e22a66 commit 3bdd3b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ PLATFORM ?= PLATFORM_DESKTOP

# Define project variables
PROJECT_NAME ?= pokeromtrader
PROJECT_VERSION := 0.6.0
PROJECT_VERSION := 0.6.1
# prerelease or release
PROJECT_VERSION_TYPE ?= release
PROJECT_BUILD_PATH ?= .
Expand Down
2 changes: 1 addition & 1 deletion src/components/ConfirmModal.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ void draw_confirmation_modal(const char *header_text, const char *body_text, con
DrawRectangle(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, scrim);

// Modal Rectangle
Rectangle confirm_modal_rec = (Rectangle){SCREEN_WIDTH / 2 - MeasureText(header_text, 20) / 2 - 50, SCREEN_HEIGHT / 2 - 150, MeasureText(_header_text, 20) + 100, 300};
Rectangle confirm_modal_rec = (Rectangle){SCREEN_WIDTH / 2 - MeasureText(header_text, 20) / 2 - 50, SCREEN_HEIGHT / 2 - 150, clamp_min(MeasureText(header_text, 20) + 100, SCREEN_WIDTH*0.8), 300};
// Bottom Shadow
DrawRectangleGradientV(confirm_modal_rec.x + 4, confirm_modal_rec.y + confirm_modal_rec.height - 2, confirm_modal_rec.width - 5, 6, LIGHTGRAY, (Color){0, 0, 0, 0});
// Right Shadow
Expand Down

0 comments on commit 3bdd3b7

Please sign in to comment.