More Motif stuff

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@763 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1998-09-20 20:59:30 +00:00
parent b112d15289
commit dfc5454127
29 changed files with 1355 additions and 371 deletions

View File

@@ -257,21 +257,28 @@ void wxGetMousePosition( int* x, int* y )
// Return TRUE if we have a colour display
bool wxColourDisplay()
{
// TODO
return TRUE;
Display *dpy = (Display*) wxGetDisplay();
if (DefaultDepth (dpy, DefaultScreen (dpy)) < 2)
return FALSE;
else
return TRUE;
}
// Returns depth of screen
int wxDisplayDepth()
{
// TODO
return 0;
Display *dpy = (Display*) wxGetDisplay();
return DefaultDepth (dpy, DefaultScreen (dpy));
}
// Get size of display
void wxDisplaySize(int *width, int *height)
{
// TODO
Display *dpy = (Display*) wxGetDisplay();
*width = DisplayWidth (dpy, DefaultScreen (dpy));
*height = DisplayHeight (dpy, DefaultScreen (dpy));
}
/* Configurable display in Motif */