Changed from B_ALL_WORKSPACES to ~0 because that's more readable. :)
Can't we have something like B_CURRENT_WORKSPACE_INDEX? git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20095 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -168,7 +168,7 @@ BScreen::ColorForIndex(const uint8 index)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*! \brief Returns the "inversion" ov the given 8-bit color.
|
/*! \brief Returns the "inversion" of the given 8-bit color.
|
||||||
\param index An 8-bit color index.
|
\param index An 8-bit color index.
|
||||||
\return An 8-bit color index that represents the "inversion" of the given color.
|
\return An 8-bit color index that represents the "inversion" of the given color.
|
||||||
*/
|
*/
|
||||||
@@ -233,7 +233,7 @@ rgb_color
|
|||||||
BScreen::DesktopColor()
|
BScreen::DesktopColor()
|
||||||
{
|
{
|
||||||
if (fScreen != NULL)
|
if (fScreen != NULL)
|
||||||
return fScreen->DesktopColor(B_ALL_WORKSPACES);
|
return fScreen->DesktopColor(~0);
|
||||||
|
|
||||||
return rgb_color();
|
return rgb_color();
|
||||||
}
|
}
|
||||||
@@ -261,7 +261,7 @@ void
|
|||||||
BScreen::SetDesktopColor(rgb_color rgb, bool stick)
|
BScreen::SetDesktopColor(rgb_color rgb, bool stick)
|
||||||
{
|
{
|
||||||
if (fScreen != NULL)
|
if (fScreen != NULL)
|
||||||
fScreen->SetDesktopColor(rgb, B_ALL_WORKSPACES, stick);
|
fScreen->SetDesktopColor(rgb, ~0, stick);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -322,7 +322,7 @@ status_t
|
|||||||
BScreen::GetMode(display_mode *mode)
|
BScreen::GetMode(display_mode *mode)
|
||||||
{
|
{
|
||||||
if (fScreen != NULL)
|
if (fScreen != NULL)
|
||||||
return fScreen->GetMode(B_ALL_WORKSPACES, mode);
|
return fScreen->GetMode(~0, mode);
|
||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -350,7 +350,7 @@ status_t
|
|||||||
BScreen::SetMode(display_mode *mode, bool makeDefault)
|
BScreen::SetMode(display_mode *mode, bool makeDefault)
|
||||||
{
|
{
|
||||||
if (fScreen != NULL)
|
if (fScreen != NULL)
|
||||||
return fScreen->SetMode(current_workspace(), mode, makeDefault);
|
return fScreen->SetMode(~0, mode, makeDefault);
|
||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user