Skip to content

Commit b16919e

Browse files
committed
Fix #684 : image is pixelated with HighDPI screens on MacOs/Wayland (fix only for SDL3)
1 parent 36592d4 commit b16919e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Quake/gl_vidsdl.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,10 @@ static qboolean VID_SetMode (int width, int height, float refreshrate, qboolean
524524
{
525525
flags = SDL_WINDOW_HIDDEN | SDL_WINDOW_VULKAN;
526526

527+
#ifdef USE_SDL3
528+
flags |= SDL_WINDOW_HIGH_PIXEL_DENSITY;
529+
#endif
530+
527531
if (vid_borderless.value)
528532
flags |= SDL_WINDOW_BORDERLESS;
529533
else if (!fullscreen)

0 commit comments

Comments
 (0)