use GetSize() instead of hardcoded 10248768 -- but then it doesn't really matter as the code still doesn't work
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18024 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -93,24 +93,23 @@ bool wxScreenDC::StartDrawingOnTop( wxWindow *window )
|
|||||||
return StartDrawingOnTop( &rect );
|
return StartDrawingOnTop( &rect );
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxScreenDC::StartDrawingOnTop( wxRect *rect )
|
bool wxScreenDC::StartDrawingOnTop( wxRect *rectIn )
|
||||||
{
|
{
|
||||||
int x = 0;
|
// VZ: should we do the same thing that wxMotif wxScreenDC does here?
|
||||||
int y = 0;
|
|
||||||
#if 0
|
#if 0
|
||||||
int width = gdk_screen_width();
|
wxRect rect;
|
||||||
int height = gdk_screen_height();
|
if ( rectIn )
|
||||||
#else
|
|
||||||
int width = 1024;
|
|
||||||
int height = 768;
|
|
||||||
#endif
|
|
||||||
if (rect)
|
|
||||||
{
|
{
|
||||||
x = rect->x;
|
rect = *rectIn;
|
||||||
y = rect->y;
|
|
||||||
width = rect->width;
|
|
||||||
height = rect->height;
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
rect.x =
|
||||||
|
rect.y = 0;
|
||||||
|
|
||||||
|
DoGetSize(&rect.width, &rect.height);
|
||||||
|
}
|
||||||
|
#endif // 0
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user