From 30efdbab36dc6100da641e6c65f9b3af43ad31ca Mon Sep 17 00:00:00 2001 From: LaurentGom Date: Fri, 19 Jun 2009 07:32:36 +0000 Subject: [PATCH] Minor fix to the Qt sample git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1149 4e206d99-4929-0410-ac5d-dfc041789085 --- build/vc2008/sfml-graphics.vcproj | 24 ++++++++++-------------- samples/qt/Main.cpp | 2 +- 2 files changed, 11 insertions(+), 15 deletions(-) diff --git a/build/vc2008/sfml-graphics.vcproj b/build/vc2008/sfml-graphics.vcproj index 24a62a30..8c7cb1e7 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 b022601f..29f9dd80 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)); } }