From 17dd3f3912a55aa2c2b940cd641e1601f59f1fde Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 11 May 2007 05:00:42 +0000 Subject: Only perform alpha blending on rectangles with positive widths to avoid warnings. Tracing on GTK+ goes to standard error so is not buffered. --- gtk/PlatGTK.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk') diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index e361b3e17..a38137684 100644 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -1053,7 +1053,7 @@ void SurfaceImpl::AlphaRectangle(PRectangle rc, int , ColourAllocated , int , Co #else void SurfaceImpl::AlphaRectangle(PRectangle rc, int cornerSize, ColourAllocated fill, int alphaFill, ColourAllocated outline, int alphaOutline, int flags) { - if (gc && drawable) { + if (gc && drawable && rc.Width() > 0) { int width = rc.Width(); int height = rc.Height(); // Ensure not distorted too much by corners when small @@ -2609,7 +2609,7 @@ bool Platform::MouseButtonBounce() { } void Platform::DebugDisplay(const char *s) { - printf("%s", s); + fprintf(stderr, "%s", s); } bool Platform::IsKeyDown(int) { -- cgit v1.2.3