aboutsummaryrefslogtreecommitdiff
path: root/ports/imgui-sfml/0003-fix_osx.patch
blob: 8181ee8e1f2cdc105240f48162a63a8cf4c964da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/imconfig-SFML.h b/imconfig-SFML.h
index 0f43ce6..1fce2c1 100644
--- a/imconfig-SFML.h
+++ b/imconfig-SFML.h
@@ -19,7 +19,7 @@

 #define IM_VEC4_CLASS_EXTRA                                             \
     ImVec4(const sf::Color & c)                                         \
-        : ImVec4(c.r / 255.f, c.g / 255.f, c.b / 255.f, c.a / 255.f) {  \
+        : x(c.r / 255.f), y(c.g / 255.f), z(c.b / 255.f), w(c.a / 255.f) { \
     }                                                                   \
     operator sf::Color() const {                                        \
         return sf::Color(                                               \