Improved the way rectangle are handled;
Some bug fixes. git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1093 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
caf7f915d5
commit
60e14e75b7
14 changed files with 145 additions and 115 deletions
|
@ -175,11 +175,9 @@ PySfString_GetRect(PySfString* self)
|
|||
PySfFloatRect *Rect;
|
||||
|
||||
Rect = GetNewPySfFloatRect();
|
||||
Rect->Owner = true;
|
||||
Rect->obj = new sf::FloatRect (self->obj->GetRect());
|
||||
Rect->Left = Rect->obj->Left;
|
||||
Rect->Top = Rect->obj->Top;
|
||||
Rect->Right = Rect->obj->Right;
|
||||
Rect->Bottom = Rect->obj->Bottom;
|
||||
PySfFloatRectUpdateSelf(Rect);
|
||||
|
||||
return (PyObject *)Rect;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue