Added a ColorSpace() method.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15166 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -135,6 +135,16 @@ Screen::Frame() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
color_space
|
||||||
|
Screen::ColorSpace() const
|
||||||
|
{
|
||||||
|
display_mode mode;
|
||||||
|
fHWInterface->GetMode(&mode);
|
||||||
|
|
||||||
|
return (color_space)mode.space;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
Screen::_FindMode(uint16 width, uint16 height, uint32 colorspace,
|
Screen::_FindMode(uint16 width, uint16 height, uint32 colorspace,
|
||||||
float frequency, display_mode* mode) const
|
float frequency, display_mode* mode) const
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#include <Accelerant.h>
|
#include <Accelerant.h>
|
||||||
|
#include <GraphicsDefs.h>
|
||||||
#include <Point.h>
|
#include <Point.h>
|
||||||
|
|
||||||
|
|
||||||
@@ -41,6 +42,7 @@ class Screen {
|
|||||||
uint32 &colorspace,
|
uint32 &colorspace,
|
||||||
float &frequency) const;
|
float &frequency) const;
|
||||||
BRect Frame() const;
|
BRect Frame() const;
|
||||||
|
color_space ColorSpace() const;
|
||||||
|
|
||||||
inline int32 ScreenNumber() const
|
inline int32 ScreenNumber() const
|
||||||
{ return fID; }
|
{ return fID; }
|
||||||
|
|||||||
Reference in New Issue
Block a user