Make emulator output size properly configurable

This commit is contained in:
wheremyfoodat 2023-10-01 16:28:14 +03:00
parent 27a04a806e
commit c10a3e7160
8 changed files with 30 additions and 7 deletions

View file

@ -13,6 +13,10 @@ class ScreenWidget : public QWidget {
ScreenWidget(QWidget* parent = nullptr);
GL::Context* getGLContext() { return glContext.get(); }
// Dimensions of our output surface
u32 surfaceWidth = 0;
u32 surfaceHeight = 0;
private:
std::unique_ptr<GL::Context> glContext = nullptr;
bool createGLContext();