projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4e5e09
)
Use better filtering for scaling in SDL
author
Ingo Ruhnke
<grumbel@gmail.com>
Fri, 1 Aug 2014 02:07:02 +0000
(
04:07
+0200)
committer
Ingo Ruhnke
<grumbel@gmail.com>
Fri, 1 Aug 2014 02:07:02 +0000
(
04:07
+0200)
src/video/sdl/sdl_renderer.cpp
patch
|
blob
|
history
diff --git
a/src/video/sdl/sdl_renderer.cpp
b/src/video/sdl/sdl_renderer.cpp
index
61504e7
..
e1a149e
100644
(file)
--- a/
src/video/sdl/sdl_renderer.cpp
+++ b/
src/video/sdl/sdl_renderer.cpp
@@
-59,6
+59,8
@@
SDLRenderer::SDLRenderer() :
PHYSICAL_SCREEN_WIDTH = width;
PHYSICAL_SCREEN_HEIGHT = height;
+ SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "2");
+
int ret = SDL_CreateWindowAndRenderer(width, height, flags,
&window, &renderer);