Add QPlatformNative include for Linux/BSD

This commit is contained in:
wheremyfoodat 2023-09-30 13:57:54 +03:00
parent 45a80c9e39
commit 8c3dd70c5a
3 changed files with 8 additions and 2 deletions

View file

@ -8,9 +8,14 @@
#include <cmath>
#include <optional>
#if !defined(_WIN32) && !defined(APPLE)
#include <qpa/qplatformnativeinterface.h>
#endif
#include "panda_qt/screen.hpp"
// OpenGL screen widget, based on https://github.com/melonDS-emu/melonDS/blob/master/src/frontend/qt_sdl/main.cpp
// OpenGL screen widget, based on https://github.com/stenzek/duckstation/blob/master/src/duckstation-qt/displaywidget.cpp
// and https://github.com/melonDS-emu/melonDS/blob/master/src/frontend/qt_sdl/main.cpp
#ifdef PANDA3DS_ENABLE_OPENGL
ScreenWidget::ScreenWidget(QWidget* parent) : QWidget(parent) {