File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -227,8 +227,8 @@ void ToggleFullscreen(void)
227227 if (FLAG_IS_SET (CORE .Window .flags , FLAG_WINDOW_HIGHDPI ))
228228 {
229229 Vector2 scaleDpi = GetWindowScaleDPI ();
230- CORE .Window .screen .width *= scaleDpi .x ;
231- CORE .Window .screen .height *= scaleDpi .y ;
230+ CORE .Window .screen .width = ( unsigned int )( CORE . Window . screen . width * scaleDpi .x ) ;
231+ CORE .Window .screen .height = ( unsigned int )( CORE . Window . screen . height * scaleDpi .y ) ;
232232 }
233233#endif
234234
@@ -306,8 +306,8 @@ void ToggleBorderlessWindowed(void)
306306 if (FLAG_IS_SET (CORE .Window .flags , FLAG_WINDOW_HIGHDPI ))
307307 {
308308 Vector2 scaleDpi = GetWindowScaleDPI ();
309- CORE .Window .screen .width *= scaleDpi .x ;
310- CORE .Window .screen .height *= scaleDpi .y ;
309+ CORE .Window .screen .width = ( unsigned int )( CORE . Window . screen . width * scaleDpi .x ) ;
310+ CORE .Window .screen .height = ( unsigned int )( CORE . Window . screen . height * scaleDpi .y ) ;
311311 }
312312 #endif
313313
You can’t perform that action at this time.
0 commit comments