mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	Use the proper parent window
Fixes an issue where the touch point is incorrect in OpenGLWindow when the render target is initialized for the first time with single window mode disabled.
This commit is contained in:
		
							parent
							
								
									123c0212ef
								
							
						
					
					
						commit
						ea40eb0994
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -354,8 +354,9 @@ void GRenderWindow::InitRenderTarget() { | |||
|         delete child_widget; | ||||
|     } | ||||
| 
 | ||||
|     child_window = new OpenGLWindow(QWidget::window()->windowHandle(), this, | ||||
|                                     QOpenGLContext::globalShareContext()); | ||||
|     GMainWindow* parent = GetMainWindow(); | ||||
|     QWindow* parent_win_handle = parent ? parent->windowHandle() : nullptr; | ||||
|     child_window = new OpenGLWindow(parent_win_handle, this, QOpenGLContext::globalShareContext()); | ||||
|     child_window->create(); | ||||
|     child_widget = createWindowContainer(child_window, this); | ||||
|     child_widget->resize(Core::kScreenTopWidth, Core::kScreenTopHeight + Core::kScreenBottomHeight); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue