Skip to content

Commit d347cdd

Browse files
authored
Merge pull request #19 from sandrwich/fix/window-corner-gaps
Fix transparent gaps in rounded window corners
2 parents 8359654 + 63f81fa commit d347cdd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/ui.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,12 +1042,12 @@ static bool DrawMaterialWindow(Rectangle bounds, const char *title, AppConfig *c
10421042
float scale = cfg->ui_scale;
10431043
float header_h = 24 * scale;
10441044

1045-
DrawRectangleRounded(bounds, 0.05f, 16, cfg->ui_primary);
1045+
DrawRectangleRounded(bounds, 0.05f, 4, cfg->ui_primary);
10461046

10471047
#if (defined(_WIN32) || defined(_WIN64)) && !defined(_M_ARM64)
1048-
DrawRectangleRoundedLines(bounds, 0.05f, 16, 1.5f * scale, cfg->window_border);
1048+
DrawRectangleRoundedLines(bounds, 0.05f, 8, 1.5f * scale, cfg->window_border);
10491049
#else
1050-
DrawRectangleRoundedLines(bounds, 0.05f, 16, cfg->window_border);
1050+
DrawRectangleRoundedLines(bounds, 0.05f, 8, cfg->window_border);
10511051
#endif
10521052

10531053
const char *titleText = title;

0 commit comments

Comments
 (0)