Skip to content

Commit

Permalink
Don't use delegated ctor (C++11 only feature)
Browse files Browse the repository at this point in the history
Fixes #97
  • Loading branch information
eliasdaler authored Sep 27, 2019
1 parent 6d6e693 commit 1b8f0c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions imconfig-SFML.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

#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( \
static_cast<sf::Uint8>(x * 255.f), \
Expand All @@ -29,4 +29,4 @@
static_cast<sf::Uint8>(w * 255.f)); \
}

#define ImTextureID unsigned int
#define ImTextureID unsigned int

0 comments on commit 1b8f0c7

Please sign in to comment.