| 1612 | } |
| 1613 | |
| 1614 | void 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 | |
| 1634 | void MainWindow::OnDPIChangedEvent(wxDPIChangedEvent& event) |
| 1635 | { |
nothing calls this directly
no test coverage detected