diff --git a/build/vc2008/sfml-graphics.vcproj b/build/vc2008/sfml-graphics.vcproj index 24a62a308..8c7cb1e7b 100644 --- a/build/vc2008/sfml-graphics.vcproj +++ b/build/vc2008/sfml-graphics.vcproj @@ -3281,7 +3281,7 @@ > - - diff --git a/samples/qt/Main.cpp b/samples/qt/Main.cpp index b022601fd..29f9dd80d 100644 --- a/samples/qt/Main.cpp +++ b/samples/qt/Main.cpp @@ -60,7 +60,7 @@ private : // Adjust the size of the default view when the widget is resized if (Event.Type == sf::Event::Resized) { - GetDefaultView().SetHalfSize(Event.Size.Width / 2.f, Event.Size.Height / 2.f); + GetDefaultView().SetFromRect(sf::FloatRect(0, 0, Event.Size.Width, Event.Size.Height)); } }