mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	emu_window_sdl2: Respect hidpi
Use SDL_GL_GetDrawableSize instead of SDL_GetWindowSize which will return the true size our swapchain needs to be in even for hidpi displays.
This commit is contained in:
		
							parent
							
								
									06c426883f
								
							
						
					
					
						commit
						aac0e07d1e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -84,7 +84,7 @@ void EmuWindow_SDL2::RequestClose() { | ||||||
| 
 | 
 | ||||||
| void EmuWindow_SDL2::OnResize() { | void EmuWindow_SDL2::OnResize() { | ||||||
|     int width, height; |     int width, height; | ||||||
|     SDL_GetWindowSize(render_window, &width, &height); |     SDL_GL_GetDrawableSize(render_window, &width, &height); | ||||||
|     UpdateCurrentFramebufferLayout(width, height); |     UpdateCurrentFramebufferLayout(width, height); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue