rpcsx/rpcs3/rpcs3qt/gl_gs_frame.h
TGEnigma f6b0b31e8b Fix gs_frame spawning on monitor other than the one the main window is on (#4029)
* Fix gs_frame spawning on a screen other than the one the RPCS3 window is on for multi-monitor setups

* Cleaned up code & refactored it into a utility function for reuse

* Qt: take gs_frame's framemargins into account by using showEvent
2018-02-03 19:50:48 +00:00

19 lines
430 B
C++

#pragma once
#include "stdafx.h"
#include "gs_frame.h"
class gl_gs_frame : public gs_frame
{
private:
QSurfaceFormat m_format;
public:
gl_gs_frame(const QRect& geometry, QIcon appIcon, bool disableMouse);
draw_context_t make_context() override;
void set_current(draw_context_t context) override;
void delete_context(draw_context_t context) override;
void flip(draw_context_t context, bool skip_frame=false) override;
};