summaryrefslogtreecommitdiff
path: root/vcl/win
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2014-11-14 20:35:44 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-11-15 14:43:54 +0100
commitbad9b2d464cb350fd59e2808dc4e7415cc6658ea (patch)
tree750c526da4984123cd0b67f2d5ea43c22ab27f67 /vcl/win
parent1e15058e08445d2857755ec8ef06deb2e3393b97 (diff)
vcl: The backend should decide whether fast alpha drawing is available.
The unx drawAlphaBitmap() already already checks that the source and destination have the same size. Windows and OpenGL should be able to handle that without trouble. OS X would need some additional code, so added an early return for the case the source and result sizes do not match. Change-Id: Ib09654aaa9c9064c232cff5094fcaa1190e931c6
Diffstat (limited to 'vcl/win')
-rw-r--r--vcl/win/source/gdi/gdiimpl.cxx11
1 files changed, 0 insertions, 11 deletions
diff --git a/vcl/win/source/gdi/gdiimpl.cxx b/vcl/win/source/gdi/gdiimpl.cxx
index 453033fa5efb..03ad55465fd2 100644
--- a/vcl/win/source/gdi/gdiimpl.cxx
+++ b/vcl/win/source/gdi/gdiimpl.cxx
@@ -774,17 +774,6 @@ void WinSalGraphicsImpl::drawBitmap( const SalTwoRect& rPosAry,
DBG_ASSERT( !mrParent.isPrinter(), "No transparency print possible!" );
bool bTryDirectPaint(!mrParent.isPrinter() && !mbXORMode);
- if(bTryDirectPaint)
- {
- // only paint direct when no scaling and no MapMode, else the
- // more expensive conversions may be done for short-time Bitmap/BitmapEx
- // used for buffering only
- if(rPosAry.mnSrcWidth == rPosAry.mnDestWidth && rPosAry.mnSrcHeight == rPosAry.mnDestHeight)
- {
- bTryDirectPaint = false;
- }
- }
-
// try to draw using GdiPlus directly
if(bTryDirectPaint && drawAlphaBitmap(rPosAry, rSSalBitmap, rSTransparentBitmap))
{