MCPcopy Create free account
hub / github.com/cemu-project/Cemu / OnSizeEvent

Method OnSizeEvent

src/gui/MainWindow.cpp:1614–1632  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1612}
1613
1614void MainWindow::OnSizeEvent(wxSizeEvent& event)
1615{
1616 if (!IsMaximized() && !gui_isFullScreen())
1617 m_restored_size = GetSize();
1618
1619 const wxSize client_size = GetClientSize();
1620 g_window_info.width = client_size.GetWidth();
1621 g_window_info.height = client_size.GetHeight();
1622 g_window_info.phys_width = ToPhys(client_size.GetWidth());
1623 g_window_info.phys_height = ToPhys(client_size.GetHeight());
1624 g_window_info.dpi_scale = GetDPIScaleFactor();
1625
1626 if (m_debugger_window && m_debugger_window->IsShown())
1627 m_debugger_window->OnParentMove(GetPosition(), event.GetSize());
1628
1629 event.Skip();
1630
1631 VsyncDriver_notifyWindowPosChanged();
1632}
1633
1634void MainWindow::OnDPIChangedEvent(wxDPIChangedEvent& event)
1635{

Callers

nothing calls this directly

Calls 4

gui_isFullScreenFunction · 0.85
OnParentMoveMethod · 0.80
GetSizeMethod · 0.45

Tested by

no test coverage detected