mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	Set framebuffer layout from EmuWindow.
This commit is contained in:
		
							parent
							
								
									8e4e28aacb
								
							
						
					
					
						commit
						9960c49c21
					
				
					 7 changed files with 88 additions and 60 deletions
				
			
		|  | @ -155,6 +155,7 @@ GRenderWindow::GRenderWindow(QWidget* parent) : QWidget(parent), emu_thread(this | |||
| 
 | ||||
|     child = new GGLWidgetInternal(fmt, this); | ||||
|     QBoxLayout* layout = new QHBoxLayout(this); | ||||
| 
 | ||||
|     resize(VideoCore::kScreenTopWidth, VideoCore::kScreenTopHeight + VideoCore::kScreenBottomHeight); | ||||
|     layout->addWidget(child); | ||||
|     layout->setMargin(0); | ||||
|  | @ -234,7 +235,7 @@ void GRenderWindow::OnFramebufferSizeChanged() | |||
|     unsigned height = child->QPaintDevice::height(); | ||||
| #endif | ||||
| 
 | ||||
|     NotifyFramebufferSizeChanged(std::make_pair(width, height)); | ||||
|     NotifyFramebufferLayoutChanged(EmuWindow::FramebufferLayout::DefaultScreenLayout(width, height)); | ||||
| } | ||||
| 
 | ||||
| void GRenderWindow::BackupGeometry() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue