diff options
| author | nyamatongwe <unknown> | 2007-05-11 05:00:42 +0000 |
|---|---|---|
| committer | nyamatongwe <unknown> | 2007-05-11 05:00:42 +0000 |
| commit | c0869c9847487587d358025c6138297c74b5f3d6 (patch) | |
| tree | 4463e5ec23e3afd7ffc614e1eae24cdbdc3777a0 /gtk/PlatGTK.cxx | |
| parent | 07a03854a47516544d8bd4dc5a50187a02d9cb50 (diff) | |
| download | scintilla-mirror-c0869c9847487587d358025c6138297c74b5f3d6.tar.gz | |
Only perform alpha blending on rectangles with positive widths to
avoid warnings.
Tracing on GTK+ goes to standard error so is not buffered.
Diffstat (limited to 'gtk/PlatGTK.cxx')
| -rw-r--r-- | gtk/PlatGTK.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |
