mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	EmuWindow: Add support for specifying minimal client area sizes.
This commit is contained in:
		
							parent
							
								
									bd8f491e4c
								
							
						
					
					
						commit
						722ce22589
					
				
					 5 changed files with 58 additions and 8 deletions
				
			
		|  | @ -129,6 +129,9 @@ GRenderWindow::GRenderWindow(QWidget* parent) : QWidget(parent), emu_thread(this | |||
|     setLayout(layout); | ||||
|     connect(&emu_thread, SIGNAL(started()), this, SLOT(moveContext())); | ||||
| 
 | ||||
| 	setMinimumSize(GetActiveConfig().min_client_area_size.first, | ||||
|                    GetActiveConfig().min_client_area_size.second); | ||||
| 
 | ||||
|     OnFramebufferSizeChanged(); | ||||
|     NotifyClientAreaSizeChanged(std::pair<unsigned,unsigned>(child->width(), child->height())); | ||||
| 
 | ||||
|  | @ -275,3 +278,7 @@ void GRenderWindow::OnClientAreaResized(unsigned width, unsigned height) | |||
| { | ||||
|     NotifyClientAreaSizeChanged(std::make_pair(width, height)); | ||||
| } | ||||
| 
 | ||||
| void GRenderWindow::OnMinimalClientAreaChangeRequest(const std::pair<unsigned,unsigned>& minimal_size) { | ||||
| 	setMinimumSize(minimal_size.first, minimal_size.second); | ||||
| } | ||||
|  |  | |||
|  | @ -121,6 +121,8 @@ public slots: | |||
|     void moveContext();  // overridden
 | ||||
| 
 | ||||
| private: | ||||
|     void OnMinimalClientAreaChangeRequest(const std::pair<unsigned,unsigned>& minimal_size) override; | ||||
| 
 | ||||
|     QGLWidget* child; | ||||
| 
 | ||||
|     EmuThread emu_thread; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue