From 505e208a63d2765f05c79ff4c42d264d83eb868f Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 11 Feb 2002 06:13:13 +0000 Subject: X only uses 16 bit coordinates so avoid drawing rectangles beyond 32000. --- gtk/PlatGTK.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gtk/PlatGTK.cxx') diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index bc2c11c3b..8e6c527bf 100644 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -379,7 +379,7 @@ void SurfaceImpl::RectangleDraw(PRectangle rc, ColourAllocated fore, ColourAlloc void SurfaceImpl::FillRectangle(PRectangle rc, ColourAllocated back) { PenColour(back); - if (drawable) { + if (drawable && (rc.left < 32000)) { // Protect against out of range gdk_draw_rectangle(drawable, gc, 1, rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top); -- cgit v1.2.3