diff options
author | nyamatongwe <devnull@localhost> | 2002-02-11 06:13:13 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2002-02-11 06:13:13 +0000 |
commit | f680b6eca633a8f8e5849554bfe8f7117fa625b6 (patch) | |
tree | f72fc1ea3db4668f1400f3595c1f2089b9e9ba96 | |
parent | bc4593ab2fd07b59d3709d36ec951d3fbf0e44ff (diff) | |
download | scintilla-mirror-f680b6eca633a8f8e5849554bfe8f7117fa625b6.tar.gz |
X only uses 16 bit coordinates so avoid drawing rectangles beyond 32000.
-rw-r--r-- | gtk/PlatGTK.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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); |