File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -378,7 +378,7 @@ bool GLimp_Init( glimpParms_t parms )
378378 glConfig.multisamples = parms.multiSamples ;
379379 glConfig.pixelAspect = 1 .0f ; // FIXME: some monitor modes may be distorted
380380 // should side-by-side stereo modes be consider aspect 0.5?
381- swf_cursorDPI.SetFloat (SDL_GetWindowPixelDensity (window));
381+ swf_cursorDPI.SetFloat (SDL_GetWindowDisplayScale (window));
382382 // RB end
383383
384384 break ;
@@ -577,7 +577,7 @@ bool GLimp_SetScreenParms( glimpParms_t parms )
577577 SDL_GetWindowSizeInPixels ( window, &glConfig.nativeScreenWidth , &glConfig.nativeScreenHeight );
578578 glConfig.displayFrequency = parms.displayHz ;
579579 glConfig.multisamples = parms.multiSamples ;
580- swf_cursorDPI.SetFloat (SDL_GetWindowPixelDensity (window));
580+ swf_cursorDPI.SetFloat (SDL_GetWindowDisplayScale (window));
581581
582582 return true ;
583583}
You can’t perform that action at this time.
0 commit comments