Skip to content

Commit

Permalink
SDL/Window: set render scaling method to linear
Browse files Browse the repository at this point in the history
This looks better than NN scaling (default);
  • Loading branch information
Vultraz committed Jul 9, 2017
1 parent 685e84d commit ade2c5f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sdl/window.cpp
Expand Up @@ -54,6 +54,9 @@ window::window(const std::string& title,
// Set default blend mode to blend.
SDL_SetRenderDrawBlendMode(*this, SDL_BLENDMODE_BLEND);

// Use linear scaling when rendering, if applicable.
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "linear");

pixel_format_ = info.texture_formats[0];

fill(0,0,0);
Expand Down

0 comments on commit ade2c5f

Please sign in to comment.