mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-22 13:31:08 +00:00
bug-fix: anti-aliasing not always working
This commit is contained in:
parent
2d035eb3e9
commit
b9c9687153
@ -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(
|
||||
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user