Minor fix to the Qt sample

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1149 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
LaurentGom 2009-06-19 07:32:36 +00:00
parent f04086c72b
commit 30efdbab36
2 changed files with 11 additions and 15 deletions

View File

@ -3281,7 +3281,7 @@
> >
</File> </File>
<File <File
RelativePath="..\..\src\SFML\Graphics\Color.hpp" RelativePath="..\..\include\SFML\Graphics\Color.hpp"
> >
</File> </File>
<File <File
@ -3289,7 +3289,7 @@
> >
</File> </File>
<File <File
RelativePath="..\..\src\SFML\Graphics\Drawable.hpp" RelativePath="..\..\include\SFML\Graphics\Drawable.hpp"
> >
</File> </File>
<File <File
@ -3325,7 +3325,7 @@
> >
</File> </File>
<File <File
RelativePath="..\..\src\SFML\Graphics\Image.hpp" RelativePath="..\..\include\SFML\Graphics\Image.hpp"
> >
</File> </File>
<File <File
@ -3380,24 +3380,20 @@
RelativePath="..\..\include\SFML\Graphics\Matrix3.inl" RelativePath="..\..\include\SFML\Graphics\Matrix3.inl"
> >
</File> </File>
<File
RelativePath="..\..\src\SFML\Graphics\OpenGL.hpp"
>
</File>
<File <File
RelativePath="..\..\src\SFML\Graphics\PostFX.cpp" RelativePath="..\..\src\SFML\Graphics\PostFX.cpp"
> >
</File> </File>
<File <File
RelativePath="..\..\src\SFML\Graphics\PostFX.hpp" RelativePath="..\..\include\SFML\Graphics\PostFX.hpp"
> >
</File> </File>
<File <File
RelativePath="..\..\src\SFML\Graphics\Rect.hpp" RelativePath="..\..\include\SFML\Graphics\Rect.hpp"
> >
</File> </File>
<File <File
RelativePath="..\..\src\SFML\Graphics\Rect.inl" RelativePath="..\..\include\SFML\Graphics\Rect.inl"
> >
</File> </File>
<File <File
@ -3413,7 +3409,7 @@
> >
</File> </File>
<File <File
RelativePath="..\..\src\SFML\Graphics\RenderWindow.hpp" RelativePath="..\..\include\SFML\Graphics\RenderWindow.hpp"
> >
</File> </File>
<File <File
@ -3429,7 +3425,7 @@
> >
</File> </File>
<File <File
RelativePath="..\..\src\SFML\Graphics\Sprite.hpp" RelativePath="..\..\include\SFML\Graphics\Sprite.hpp"
> >
</File> </File>
<File <File
@ -3437,7 +3433,7 @@
> >
</File> </File>
<File <File
RelativePath="..\..\src\SFML\Graphics\String.hpp" RelativePath="..\..\include\SFML\Graphics\String.hpp"
> >
</File> </File>
<File <File
@ -3445,7 +3441,7 @@
> >
</File> </File>
<File <File
RelativePath="..\..\src\SFML\Graphics\View.hpp" RelativePath="..\..\include\SFML\Graphics\View.hpp"
> >
</File> </File>
</Files> </Files>

View File

@ -60,7 +60,7 @@ private :
// Adjust the size of the default view when the widget is resized // Adjust the size of the default view when the widget is resized
if (Event.Type == sf::Event::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));
} }
} }