obliteration/gui/screen.cpp
2024-10-03 08:43:26 +02:00

24 lines
345 B
C++

#include "screen.hpp"
Screen::Screen()
{
#ifdef __APPLE__
setSurfaceType(QSurface::MetalSurface);
#else
setSurfaceType(QSurface::VulkanSurface);
#endif
}
Screen::~Screen()
{
}
bool Screen::event(QEvent *ev)
{
if (ev->type() == QEvent::UpdateRequest) {
emit updateRequestReceived();
}
return QWindow::event(ev);
}