Fixed bug in sf.Window.GetSettings

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1158 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
remi-k 2009-07-09 06:45:15 +00:00
parent 06525907c1
commit 9bf53607d3

View File

@ -227,7 +227,7 @@ PySfWindow_GetSettings(PySfWindow *self)
{ {
PySfWindowSettings *Settings; PySfWindowSettings *Settings;
Settings = GetNewPySfWindowSettings(); Settings = GetNewPySfWindowSettings();
Settings->obj = (sf::WindowSettings *)&self->obj->GetSettings(); Settings->obj = new sf::WindowSettings(self->obj->GetSettings());
Settings->DepthBits = Settings->obj->DepthBits; Settings->DepthBits = Settings->obj->DepthBits;
Settings->StencilBits = Settings->obj->StencilBits; Settings->StencilBits = Settings->obj->StencilBits;
Settings->AntialiasingLevel = Settings->obj->AntialiasingLevel; Settings->AntialiasingLevel = Settings->obj->AntialiasingLevel;