Skip to content

Commit 1235a8d

Browse files
committed
Fix build for windows
1 parent ed3acd1 commit 1235a8d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

imgui-binding/src/main/java/imgui/ImGui.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -878,11 +878,11 @@ public static void pushFont(ImFont font) {
878878
*/
879879

880880
public static native void pushStyleColor(int imGuiCol, float r, float g, float b, float a); /*
881-
ImGui::PushStyleColor(imGuiCol, (ImU32)ImColor(r, g, b, a));
881+
ImGui::PushStyleColor(imGuiCol, (ImU32)ImColor((float)r, (float)g, (float)b, (float)a));
882882
*/
883883

884884
public static native void pushStyleColor(int imGuiCol, int r, int g, int b, int a); /*
885-
ImGui::PushStyleColor(imGuiCol, (ImU32)ImColor(r, g, b, a));
885+
ImGui::PushStyleColor(imGuiCol, (ImU32)ImColor((int)r, (int)g, (int)b, (int)a));
886886
*/
887887

888888
public static native void pushStyleColor(int imGuiCol, int col); /*
@@ -1335,14 +1335,14 @@ public static ImFont getFont() {
13351335
* Shortcut for PushStyleColor(ImGuiCol_Text, col); Text(fmt, ...); PopStyleColor();
13361336
*/
13371337
public static native void textColored(float r, float g, float b, float a, String text); /*
1338-
ImGui::TextColored(ImColor(r, g, b, a), text, NULL);
1338+
ImGui::TextColored(ImColor((float)r, (float)g, (float)b, (float)a), text, NULL);
13391339
*/
13401340

13411341
/**
13421342
* Shortcut for PushStyleColor(ImGuiCol_Text, col); Text(fmt, ...); PopStyleColor();
13431343
*/
13441344
public static native void textColored(int r, int g, int b, int a, String text); /*
1345-
ImGui::TextColored(ImColor(r, g, b, a), text, NULL);
1345+
ImGui::TextColored(ImColor((int)r, (int)g, (int)b, (int)a), text, NULL);
13461346
*/
13471347

13481348
/**

imgui-binding/src/main/java/imgui/ImGuiStyle.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,11 +602,11 @@ public void destroy() {
602602
*/
603603

604604
public native void setColor(int imGuiCol, float r, float g, float b, float a); /*
605-
IMGUI_STYLE->Colors[imGuiCol] = ImColor(r, g, b, a);
605+
IMGUI_STYLE->Colors[imGuiCol] = ImColor((float)r, (float)g, (float)b, (float)a);
606606
*/
607607

608608
public native void setColor(int imGuiCol, int r, int g, int b, int a); /*
609-
IMGUI_STYLE->Colors[imGuiCol] = ImColor(r, g, b, a);
609+
IMGUI_STYLE->Colors[imGuiCol] = ImColor((int)r, (int)g, (int)b, (int)a);
610610
*/
611611

612612
public native void setColor(int imGuiCol, int col); /*

0 commit comments

Comments
 (0)