mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	citra GLFW: Ignore minimal window size hints.
GLFW provides no proper support for this, hence we just allow any window size to be used.
This commit is contained in:
		
							parent
							
								
									5785f764ab
								
							
						
					
					
						commit
						963c923d59
					
				
					 1 changed files with 2 additions and 8 deletions
				
			
		|  | @ -46,14 +46,8 @@ void EmuWindow_GLFW::OnClientAreaResizeEvent(GLFWwindow* win, int width, int hei | ||||||
|     _dbg_assert_(GUI, width > 0); |     _dbg_assert_(GUI, width > 0); | ||||||
|     _dbg_assert_(GUI, height > 0); |     _dbg_assert_(GUI, height > 0); | ||||||
| 
 | 
 | ||||||
|     // TODO: It's actually more interesting to us what the framebuffer size ends up being.
 |     // NOTE: GLFW provides no proper way to set a minimal window size.
 | ||||||
|     int adjusted_width = std::max<unsigned>(width, GetEmuWindow(win)->GetActiveConfig().min_client_area_size.first); |     //       Hence, we just ignore the corresponding EmuWindow hint.
 | ||||||
|     int adjusted_height = std::max<unsigned>(height, GetEmuWindow(win)->GetActiveConfig().min_client_area_size.second); |  | ||||||
| 
 |  | ||||||
|     if (adjusted_width != width || adjusted_height != height) { |  | ||||||
|         glfwSetWindowSize(win, adjusted_width, adjusted_height); |  | ||||||
|         return; |  | ||||||
|     } |  | ||||||
| 
 | 
 | ||||||
|     GetEmuWindow(win)->NotifyClientAreaSizeChanged(std::pair<unsigned,unsigned>(width, height)); |     GetEmuWindow(win)->NotifyClientAreaSizeChanged(std::pair<unsigned,unsigned>(width, height)); | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue