diff --git a/DSFML/import/dsfml/graphics/sprite.d b/DSFML/import/dsfml/graphics/sprite.d index fb17ac602..e4df92539 100644 --- a/DSFML/import/dsfml/graphics/sprite.d +++ b/DSFML/import/dsfml/graphics/sprite.d @@ -103,7 +103,7 @@ public: */ void setSubRect(IntRect rect) { - sfSprite_SetSubRect(m_ptr, &rect); + sfSprite_SetSubRect(m_ptr, rect); m_subRect = rect; } @@ -213,7 +213,7 @@ private: extern (C) { typedef void function(void*, void*, bool) pf_sfSprite_SetImage; - typedef void function(void*, IntRect*) pf_sfSprite_SetSubRect; + typedef void function(void*, IntRect) pf_sfSprite_SetSubRect; typedef void function(void*, float, float) pf_sfSprite_Resize; typedef void function(void*, int) pf_sfSprite_FlipX; typedef void function(void*, int) pf_sfSprite_FlipY; diff --git a/DSFML/import/dsfml/system/sleep.d b/DSFML/import/dsfml/system/sleep.d index 5c08a9137..7d2a63f82 100644 --- a/DSFML/import/dsfml/system/sleep.d +++ b/DSFML/import/dsfml/system/sleep.d @@ -32,7 +32,7 @@ extern(C) { typedef void function(float) pf_sfSleep; - private static pf_sfSleep sfSleep; + private static __gshared pf_sfSleep sfSleep; } static this() diff --git a/DSFML/import/dsfml/system/vector2.d b/DSFML/import/dsfml/system/vector2.d index 2b4a3b383..5687890da 100644 --- a/DSFML/import/dsfml/system/vector2.d +++ b/DSFML/import/dsfml/system/vector2.d @@ -154,3 +154,5 @@ version (UnitTest) alias Vector2!(float) Vector2f; /// ditto alias Vector2!(int) Vector2i; +/// ditto +alias Vector2!(int) Vector2ui; \ No newline at end of file