Have sdl2 gfx driver use "nearest" scaling in menus (#15366)

This commit is contained in:
Grisly Glee 2023-06-11 07:35:45 +03:00 committed by GitHub
parent 1150e2b8f7
commit a2285de73e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -301,7 +301,7 @@ static void sdl_refresh_input_size(sdl2_video_t *vid, bool menu, bool rgb32,
format = rgb32 ? SDL_PIXELFORMAT_ARGB8888 : SDL_PIXELFORMAT_RGB565;
SDL_SetHintWithPriority(SDL_HINT_RENDER_SCALE_QUALITY,
(vid->video.smooth || menu) ? "linear" : "nearest",
(menu ? "nearest" : (vid->video.smooth ? "linear" : "nearest")),
SDL_HINT_OVERRIDE);
target->tex = SDL_CreateTexture(vid->renderer, format,