Fixed a quit bug in ViewDriver

Slightly improved ServerScreen::SupportsResolution
Implemented a DPMS hack for ViewDriver and DirectDriver
Moved various supporting classes from DisplayDriver.cpp to DisplaySupport.cpp
Added server-side support for BWindow::SetSizeLimits


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8541 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
DarkWyrm
2004-08-07 20:30:58 +00:00
parent 33cbe8bb6c
commit 4a10a4f0ea
12 changed files with 542 additions and 743 deletions
+26 -3
View File
@@ -377,21 +377,44 @@ void WinBorder::ResizeBy(float x, float y)
Layer::ResizeBy(x,y);
}
bool WinBorder::IsHidden() const{
bool WinBorder::IsHidden() const
{
if (fServerHidden)
return true;
return Layer::IsHidden();
}
void WinBorder::ServerHide(){
void WinBorder::ServerHide()
{
fServerHidden = true;
}
void WinBorder::ServerUnhide(){
void WinBorder::ServerUnhide()
{
fServerHidden = false;
}
void WinBorder::SetSizeLimits(float minwidth, float maxwidth, float minheight, float maxheight)
{
if(minwidth<0)
minwidth=0;
if(minheight<0)
minheight=0;
if(maxwidth<=minwidth)
maxwidth=minwidth+1;
if(maxheight<=minheight)
maxheight=minheight+1;
fMinWidth=minwidth;
fMaxWidth=maxwidth;
fMinHeight=minheight;
fMaxHeight=maxheight;
}
bool WinBorder::HasPoint(const BPoint& pt) const
{
return fFullVisible.Contains(pt);