Initial screen layout implementation

This commit is contained in:
wheremyfoodat 2025-07-04 17:53:36 +03:00
parent d06f600b3a
commit 62748eef47
11 changed files with 335 additions and 126 deletions

View file

@ -3,6 +3,7 @@
#include <functional>
#include <memory>
#include "PICA/screen_layout.hpp"
#include "gl/context.h"
#include "window_info.h"
@ -29,6 +30,10 @@ class ScreenWidget : public QWidget {
u32 previousWidth = 0;
u32 previousHeight = 0;
// Coordinates (x/y/width/height) for the two screens in window space, used for properly handling touchscreen regardless
// of layout or resizing
ScreenLayout::WindowCoordinates screenCoordinates;
private:
std::unique_ptr<GL::Context> glContext = nullptr;
ResizeCallback resizeCallback;