Skip to content

Commit

Permalink
Brush: fix brush size shown in preview
Browse files Browse the repository at this point in the history
  • Loading branch information
dsizzle committed Nov 4, 2023
1 parent a77b587 commit 7659304
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion artpaint/tools/Brush.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,8 @@ Brush::PreviewBrush(BBitmap* preview_bitmap)
BFont font;
font.SetSize(bmap_width / 6);
BString brushSizeString;
brushSizeString.SetToFormat("%d", (int32)max_dim - 2);
float brushSize = max_c(actual_width, actual_height);
brushSizeString.SetToFormat("%d", (int32)brushSize);

int32 strWidth = font.StringWidth("000");
font_height strHeight;
Expand Down

0 comments on commit 7659304

Please sign in to comment.