Skip to content

Commit

Permalink
bug-fix: anti-aliasing not always working
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLudwig committed Aug 14, 2017
1 parent 2d035eb commit b9c9687
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion BasiliskII/src/SDL/video_sdl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,9 @@ static SDL_Surface * init_sdl_video(int width, int height, int bpp, Uint32 flags
delete_sdl_video_window();
}
}

// Apply anti-aliasing, if and when appropriate (usually in fullscreen)
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "linear");

if (!sdl_window) {
sdl_window = SDL_CreateWindow(
Expand Down Expand Up @@ -792,7 +795,6 @@ static SDL_Surface * init_sdl_video(int width, int height, int bpp, Uint32 flags
}
}

SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "linear");
if (SDL_RenderSetLogicalSize(sdl_renderer, width, height) != 0) {
printf("ERROR: Unable to set SDL rendeer's logical size (to %dx%d): %s\n",
width, height, SDL_GetError());
Expand Down

0 comments on commit b9c9687

Please sign in to comment.