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:
Axel Dörfler
2005-11-26 16:55:23 +00:00
parent 26b02ddc80
commit 6e9ab86fc5
2 changed files with 12 additions and 0 deletions
+10
View File
@@ -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
Screen::_FindMode(uint16 width, uint16 height, uint32 colorspace,
float frequency, display_mode* mode) const
+2
View File
@@ -12,6 +12,7 @@
#include <Accelerant.h>
#include <GraphicsDefs.h>
#include <Point.h>
@@ -41,6 +42,7 @@ class Screen {
uint32 &colorspace,
float &frequency) const;
BRect Frame() const;
color_space ColorSpace() const;
inline int32 ScreenNumber() const
{ return fID; }