mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 00:59:44 -06:00
Import r67258 of the wxWidgets trunk, which I expect will before
long become wxWidgets 2.9.2, which in turn is expected to be the last 2.9 release before the 3.0 stable release. Since the full wxWidgets distribution is rather large, I have imported only the parts that we use, on a subdirectory basis: art include/wx/*.* include/wx/aui include/wx/cocoa include/wx/generic include/wx/gtk include/wx/meta include/wx/msw include/wx/osx include/wx/persist include/wx/private include/wx/protocol include/wx/unix src/aui src/common src/generic src/gtk src/msw src/osx src/unix git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7380 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
74
Externals/wxWidgets3/include/wx/vidmode.h
vendored
Normal file
74
Externals/wxWidgets3/include/wx/vidmode.h
vendored
Normal file
@ -0,0 +1,74 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/vidmode.h
|
||||
// Purpose: declares wxVideoMode class used by both wxDisplay and wxApp
|
||||
// Author: Vadim Zeitlin
|
||||
// Modified by:
|
||||
// Created: 27.09.2003 (extracted from wx/display.h)
|
||||
// RCS-ID: $Id: vidmode.h 53124 2008-04-11 09:52:04Z VS $
|
||||
// Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwidgets.org>
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_VMODE_H_
|
||||
#define _WX_VMODE_H_
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxVideoMode: a simple struct containing video mode parameters for a display
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
struct WXDLLIMPEXP_CORE wxVideoMode
|
||||
{
|
||||
wxVideoMode(int width = 0, int height = 0, int depth = 0, int freq = 0)
|
||||
{
|
||||
w = width;
|
||||
h = height;
|
||||
|
||||
bpp = depth;
|
||||
|
||||
refresh = freq;
|
||||
}
|
||||
|
||||
// default copy ctor and assignment operator are ok
|
||||
|
||||
bool operator==(const wxVideoMode& m) const
|
||||
{
|
||||
return w == m.w && h == m.h && bpp == m.bpp && refresh == m.refresh;
|
||||
}
|
||||
bool operator!=(const wxVideoMode& mode) const
|
||||
{
|
||||
return !operator==(mode);
|
||||
}
|
||||
|
||||
// returns true if this mode matches the other one in the sense that all
|
||||
// non zero fields of the other mode have the same value in this one
|
||||
// (except for refresh which is allowed to have a greater value)
|
||||
bool Matches(const wxVideoMode& other) const
|
||||
{
|
||||
return (!other.w || w == other.w) &&
|
||||
(!other.h || h == other.h) &&
|
||||
(!other.bpp || bpp == other.bpp) &&
|
||||
(!other.refresh || refresh >= other.refresh);
|
||||
}
|
||||
|
||||
// trivial accessors
|
||||
int GetWidth() const { return w; }
|
||||
int GetHeight() const { return h; }
|
||||
int GetDepth() const { return bpp; }
|
||||
int GetRefresh() const { return refresh; }
|
||||
|
||||
// returns true if the object has been initialized
|
||||
bool IsOk() const { return w && h; }
|
||||
|
||||
|
||||
// the screen size in pixels (e.g. 640*480), 0 means unspecified
|
||||
int w, h;
|
||||
|
||||
// bits per pixel (e.g. 32), 1 is monochrome and 0 means unspecified/known
|
||||
int bpp;
|
||||
|
||||
// refresh frequency in Hz, 0 means unspecified/unknown
|
||||
int refresh;
|
||||
};
|
||||
|
||||
#endif // _WX_VMODE_H_
|
||||
|
Reference in New Issue
Block a user