From 8577dbd56daea8269611bf0a237b1a47ea1ea1f9 Mon Sep 17 00:00:00 2001 From: trass3r Date: Thu, 14 Jan 2010 22:24:49 +0000 Subject: [PATCH] + alias Vector2ui * fixed Sprite.setSubRect * preliminarily fixed sleep function git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1360 4e206d99-4929-0410-ac5d-dfc041789085 --- DSFML/import/dsfml/graphics/sprite.d | 4 ++-- DSFML/import/dsfml/system/sleep.d | 2 +- DSFML/import/dsfml/system/vector2.d | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) 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