summaryrefslogtreecommitdiff
path: root/sw/source/ui/vba/vbaglobals.cxx
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2014-01-27 20:11:26 +0100
committerJan Holesovsky <kendy@collabora.com>2014-01-27 20:17:01 +0100
commit3cf3700b7a903e88f5296076c40ae854bce91cdc (patch)
tree2196cd24ecbbb2124e0705bf7ed02a68115212a4 /sw/source/ui/vba/vbaglobals.cxx
parentc0deb50f8f7feecb7adb049e8253c9566232abde (diff)
fdo#74124: Scale the pictures before calling ImplDrawAlpha().
When the source and destination bitmap do not have the same size, ImplDrawAlpha() does not use direct paint, but instead it gets the image from the screen, blends it with the provided bitmap, and again draws it. Unfortunately, the blending uses the most trivial (and ugly) way of scaling; so to produce much better results, let's scale to the destination size before even calling ImplDrawAlpha(). The sideeffect is that we use the direct paint in most cases now; so hopefully it pays off to do the (a bit more expensive) scale first. Change-Id: I3b6b275710220910709ae4345ad6be3d6e4bf79c
Diffstat (limited to 'sw/source/ui/vba/vbaglobals.cxx')
0 files changed, 0 insertions, 0 deletions