From 66d0513058b98ac3af419ff31a75622ac071c639 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 11 Nov 2007 12:55:27 +0000 Subject: [PATCH] X11 implementation of wxClientDisplayRect() doesn't work with Hildon, provide a stub for the latter git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/unix/displayx11.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/unix/displayx11.cpp b/src/unix/displayx11.cpp index 99cb9e824c..687329efd2 100644 --- a/src/unix/displayx11.cpp +++ b/src/unix/displayx11.cpp @@ -326,6 +326,23 @@ bool wxDisplayImplX11::ChangeMode(const wxVideoMode& WXUNUSED(mode)) #include "wx/utils.h" +#if wxUSE_LIBHILDON + +void wxClientDisplayRect(int *x, int *y, int *width, int *height) +{ + // TODO: don't hardcode display size + if ( x ) + *x = 0; + if ( y ) + *y = 0; + if ( width ) + *width = 672; + if ( height ) + *height = 396; +} + +#else // !wxUSE_LIBHILDON + #include // TODO: make this a full-fledged class and move to a public header @@ -408,3 +425,4 @@ void wxClientDisplayRect(int *x, int *y, int *width, int *height) wxDisplaySize(width, height); } +#endif // wxUSE_LIBHILDON/!wxUSE_LIBHILDON -- 2.45.2