mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2025-02-27 13:41:47 +00:00
- fix compiling issue. It compiles. It runs. Beyond that - not 100% sure. (Used GZDoom's 3.0_work branch version of win32gliface.cpp)
This commit is contained in:
parent
dfb4e1c3a6
commit
b1c7913400
1 changed files with 19 additions and 14 deletions
|
@ -61,15 +61,21 @@ EXTERN_CVAR(Int, vid_refreshrate)
|
||||||
//
|
//
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
||||||
EDisplayType GetDisplayType () { return DISPLAY_Both; }
|
class Win32GLVideo : public IVideo
|
||||||
void SetWindowedScale (float scale);
|
{
|
||||||
void StartModeIterator (int bits, bool fs);
|
public:
|
||||||
bool NextMode (int *width, int *height, bool *letterbox);
|
Win32GLVideo(int parm);
|
||||||
|
virtual ~Win32GLVideo();
|
||||||
|
|
||||||
|
EDisplayType GetDisplayType() { return DISPLAY_Both; }
|
||||||
|
void SetWindowedScale(float scale);
|
||||||
|
void StartModeIterator(int bits, bool fs);
|
||||||
|
bool NextMode(int *width, int *height, bool *letterbox);
|
||||||
bool GoFullscreen(bool yes);
|
bool GoFullscreen(bool yes);
|
||||||
DFrameBuffer *CreateFrameBuffer (int width, int height, bool bgra, bool fs, DFrameBuffer *old);
|
DFrameBuffer *CreateFrameBuffer (int width, int height, bool bgra, bool fs, DFrameBuffer *old);
|
||||||
virtual bool SetResolution (int width, int height, int bits);
|
virtual bool SetResolution(int width, int height, int bits);
|
||||||
void DumpAdapters();
|
void DumpAdapters();
|
||||||
bool InitHardware (HWND Window, int multisample);
|
bool InitHardware(HWND Window, int multisample);
|
||||||
void Shutdown();
|
void Shutdown();
|
||||||
bool SetFullscreen(const char *devicename, int w, int h, int bits, int hz);
|
bool SetFullscreen(const char *devicename, int w, int h, int bits, int hz);
|
||||||
|
|
||||||
|
@ -78,13 +84,13 @@ EXTERN_CVAR(Int, vid_refreshrate)
|
||||||
protected:
|
protected:
|
||||||
struct ModeInfo
|
struct ModeInfo
|
||||||
{
|
{
|
||||||
ModeInfo (int inX, int inY, int inBits, int inRealY, int inRefresh)
|
ModeInfo(int inX, int inY, int inBits, int inRealY, int inRefresh)
|
||||||
: next (NULL),
|
: next(NULL),
|
||||||
width (inX),
|
width(inX),
|
||||||
height (inY),
|
height(inY),
|
||||||
bits (inBits),
|
bits(inBits),
|
||||||
refreshHz (inRefresh),
|
refreshHz(inRefresh),
|
||||||
realheight (inRealY)
|
realheight(inRealY)
|
||||||
{}
|
{}
|
||||||
ModeInfo *next;
|
ModeInfo *next;
|
||||||
int width, height, bits, refreshHz, realheight;
|
int width, height, bits, refreshHz, realheight;
|
||||||
|
@ -119,7 +125,6 @@ public:
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue