Utility/VideoMode: Make bpp optionnal (defaults to desktop bpp)
This commit is contained in:
@@ -19,6 +19,7 @@ namespace Nz
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
VideoMode();
|
VideoMode();
|
||||||
|
VideoMode(unsigned int w, unsigned int h);
|
||||||
VideoMode(unsigned int w, unsigned int h, UInt8 bpp);
|
VideoMode(unsigned int w, unsigned int h, UInt8 bpp);
|
||||||
|
|
||||||
bool IsFullscreenValid() const;
|
bool IsFullscreenValid() const;
|
||||||
|
|||||||
@@ -24,6 +24,11 @@ namespace Nz
|
|||||||
width(0)
|
width(0)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VideoMode::VideoMode(unsigned int w, unsigned int h) :
|
||||||
|
VideoMode(w, h, GetDesktopMode().bitsPerPixel)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
VideoMode::VideoMode(unsigned int w, unsigned int h, UInt8 bpp) :
|
VideoMode::VideoMode(unsigned int w, unsigned int h, UInt8 bpp) :
|
||||||
bitsPerPixel(bpp),
|
bitsPerPixel(bpp),
|
||||||
|
|||||||
Reference in New Issue
Block a user