Use better filtering for scaling in SDL
authorIngo Ruhnke <grumbel@gmail.com>
Fri, 1 Aug 2014 02:07:02 +0000 (04:07 +0200)
committerIngo Ruhnke <grumbel@gmail.com>
Fri, 1 Aug 2014 02:07:02 +0000 (04:07 +0200)
src/video/sdl/sdl_renderer.cpp

index 61504e7..e1a149e 100644 (file)
@@ -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);