qt: Implement per-monitor resizing

This commit is contained in:
Cacodemon345
2022-07-04 17:54:38 +06:00
parent 7ab71cafd3
commit e8ffc699ba
9 changed files with 51 additions and 18 deletions

View File

@@ -65,7 +65,8 @@ void mouse_poll() {
}
void plat_resize_monitor(int w, int h, int monitor_index) {
main_window->resizeContents(w, h);
if (monitor_index >= 1) main_window->resizeContentsMonitor(w, h, monitor_index);
else main_window->resizeContents(w, h);
}
void plat_setfullscreen(int on) {