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 /win32/PlatWin.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 'win32/PlatWin.cxx')
-rw-r--r-- | win32/PlatWin.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 5389ae57b..f9a9fa1c5 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -581,7 +581,7 @@ static void AllFour(DWORD *pixels, int width, int height, int x, int y, DWORD va void SurfaceImpl::AlphaRectangle(PRectangle rc, int cornerSize, ColourAllocated fill, int alphaFill, ColourAllocated outline, int alphaOutline, int /* flags*/ ) { - if (AlphaBlendFn) { + if (AlphaBlendFn && rc.Width() > 0) { HDC hMemDC = ::CreateCompatibleDC(reinterpret_cast<HDC>(hdc)); int width = rc.Width(); int height = rc.Height(); |