implemented action resizable window

This commit is contained in:
Joakim L. Gilje
2021-12-06 21:26:17 +01:00
parent 021dbf7efa
commit 230c257922
3 changed files with 20 additions and 9 deletions

View File

@@ -7,10 +7,6 @@
#include "qt_mainwindow.hpp"
std::atomic_int resize_pending = 0;
std::atomic_int resize_w = 0;
std::atomic_int resize_h = 0;
MainWindow* main_window = nullptr;
extern "C" {
@@ -46,10 +42,6 @@ void mouse_poll() {
}
void plat_resize(int w, int h) {
resize_w = w;
resize_h = h;
resize_pending = 1;
main_window->resizeContents(w, h);
}