summaryrefslogtreecommitdiff
path: root/vcl/unx/gtk
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-04-30 12:42:23 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-04-30 12:43:19 +0100
commit2e423dac20da37bd0bb4c24da47e0472888466ad (patch)
tree5b3f53c276334ef1308304d0dfcbad9b276b9625 /vcl/unx/gtk
parent5d10090c0a98d1df7fd852305ed620a7348c5d10 (diff)
Related: moz#424333 pixmaps are limited to max signed short
Change-Id: I88cfd9592e11aa7dbe704df4810090b6a1ce4c66
Diffstat (limited to 'vcl/unx/gtk')
-rw-r--r--vcl/unx/gtk/window/gtkframe.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/vcl/unx/gtk/window/gtkframe.cxx b/vcl/unx/gtk/window/gtkframe.cxx
index a647bf86429d..28776f123273 100644
--- a/vcl/unx/gtk/window/gtkframe.cxx
+++ b/vcl/unx/gtk/window/gtkframe.cxx
@@ -41,6 +41,9 @@
#include <vcl/floatwin.hxx>
#include <vcl/svapp.hxx>
#include <vcl/window.hxx>
+#if !GTK_CHECK_VERSION(3,0,0)
+#include <unx/x11/xlimits.hxx>
+#endif
#include <tools/prex.h>
#include <X11/Xatom.h>
@@ -2760,7 +2763,7 @@ void GtkSalFrame::SetBackgroundBitmap( SalBitmap* pBitmap )
if( aSize.Width() && aSize.Height() )
{
m_hBackgroundPixmap =
- XCreatePixmap( getDisplay()->GetDisplay(),
+ limitXCreatePixmap( getDisplay()->GetDisplay(),
widget_get_xid(m_pWindow),
aSize.Width(),
aSize.Height(),