Skip to content

Commit 0feb5cf

Browse files
authored
Merge pull request #25 from sandrwich/fix/windows-raylib-api
Fix Windows build after raylib 5.5 upgrade
2 parents c76282c + 1b72624 commit 0feb5cf

1 file changed

Lines changed: 3 additions & 15 deletions

File tree

src/ui.c

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1149,11 +1149,7 @@ static bool DrawMaterialWindow(Rectangle bounds, const char *title, AppConfig *c
11491149
if (content.width > 0 && content.height > 0)
11501150
DrawRectangleRounded(content, 0.04f, 6, ApplyAlpha(cfg->ui_bg, 0.10f));
11511151

1152-
#if (defined(_WIN32) || defined(_WIN64)) && !defined(_M_ARM64)
1153-
DrawRectangleRoundedLines(bounds, 0.05f, 8, 1.5f * scale, cfg->window_border);
1154-
#else
1155-
DrawRectangleRoundedLines(bounds, 0.05f, 8, cfg->window_border);
1156-
#endif
1152+
DrawRectangleRoundedLinesEx(bounds, 0.05f, 8, 1.5f * scale, cfg->window_border);
11571153

11581154
const char *titleText = title;
11591155
int titleIcon = -1;
@@ -1254,11 +1250,7 @@ static bool DrawRotatorFrame(Rectangle bounds, AppConfig *cfg, Font customFont)
12541250
float header_h = 24 * scale;
12551251

12561252
DrawRectangleRounded(bounds, 0.05f, 4, cfg->ui_primary);
1257-
#if (defined(_WIN32) || defined(_WIN64)) && !defined(_M_ARM64)
1258-
DrawRectangleRoundedLines(bounds, 0.05f, 8, 1.5f * scale, cfg->window_border);
1259-
#else
1260-
DrawRectangleRoundedLines(bounds, 0.05f, 8, cfg->window_border);
1261-
#endif
1253+
DrawRectangleRoundedLinesEx(bounds, 0.05f, 8, 1.5f * scale, cfg->window_border);
12621254

12631255
GuiLabel((Rectangle){bounds.x + 8 * scale, bounds.y + 3 * scale, 18 * scale, 18 * scale}, "#65#");
12641256
DrawUIText(customFont, "Rotator Control", bounds.x + 30 * scale, bounds.y + (header_h - 16 * scale) / 2.0f, 16 * scale, cfg->ui_accent);
@@ -1282,11 +1274,7 @@ static void DrawRotatorSection(Rectangle sec, const char *title, AppConfig *cfg,
12821274
{
12831275
float scale = cfg->ui_scale;
12841276
DrawRectangleRounded(sec, 0.06f, 6, ApplyAlpha(cfg->ui_bg, 0.14f));
1285-
#if (defined(_WIN32) || defined(_WIN64)) && !defined(_M_ARM64)
1286-
DrawRectangleRoundedLines(sec, 0.06f, 6, 1.0f * scale, ApplyAlpha(cfg->window_border, 0.85f));
1287-
#else
1288-
DrawRectangleRoundedLines(sec, 0.06f, 6, ApplyAlpha(cfg->window_border, 0.85f));
1289-
#endif
1277+
DrawRectangleRoundedLinesEx(sec, 0.06f, 6, 1.0f * scale, ApplyAlpha(cfg->window_border, 0.85f));
12901278
DrawUIText(customFont, title, sec.x + 8 * scale, sec.y + 5 * scale, 15 * scale, cfg->ui_accent);
12911279
DrawLineEx((Vector2){sec.x + 8 * scale, sec.y + 22 * scale}, (Vector2){sec.x + sec.width - 8 * scale, sec.y + 22 * scale}, 1.0f, ApplyAlpha(cfg->window_border, 0.7f));
12921280
}

0 commit comments

Comments
 (0)