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:
parent
f04086c72b
commit
30efdbab36
@ -3281,7 +3281,7 @@
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\Color.hpp"
|
||||
RelativePath="..\..\include\SFML\Graphics\Color.hpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
@ -3289,7 +3289,7 @@
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\Drawable.hpp"
|
||||
RelativePath="..\..\include\SFML\Graphics\Drawable.hpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
@ -3325,7 +3325,7 @@
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\Image.hpp"
|
||||
RelativePath="..\..\include\SFML\Graphics\Image.hpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
@ -3380,24 +3380,20 @@
|
||||
RelativePath="..\..\include\SFML\Graphics\Matrix3.inl"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\OpenGL.hpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\PostFX.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\PostFX.hpp"
|
||||
RelativePath="..\..\include\SFML\Graphics\PostFX.hpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\Rect.hpp"
|
||||
RelativePath="..\..\include\SFML\Graphics\Rect.hpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\Rect.inl"
|
||||
RelativePath="..\..\include\SFML\Graphics\Rect.inl"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
@ -3413,7 +3409,7 @@
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\RenderWindow.hpp"
|
||||
RelativePath="..\..\include\SFML\Graphics\RenderWindow.hpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
@ -3429,7 +3425,7 @@
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\Sprite.hpp"
|
||||
RelativePath="..\..\include\SFML\Graphics\Sprite.hpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
@ -3437,7 +3433,7 @@
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\String.hpp"
|
||||
RelativePath="..\..\include\SFML\Graphics\String.hpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
@ -3445,7 +3441,7 @@
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\View.hpp"
|
||||
RelativePath="..\..\include\SFML\Graphics\View.hpp"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user