mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	Merge pull request #636 from bunnei/refactor-screen-win
Set framebuffer layout from EmuWindow.
This commit is contained in:
		
						commit
						06bf471581
					
				
					 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