summaryrefslogtreecommitdiffstats
path: root/base/clipboard_win.cc
diff options
context:
space:
mode:
authordeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-21 16:05:58 +0000
committerdeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-21 16:05:58 +0000
commit6ab03fc09aa1a2ea4e8cec6879e6602ad5f4826d (patch)
tree2eb7056f40fd7479446e4430f1fccada23ed4d89 /base/clipboard_win.cc
parentddb66a8da37425f5fba01eee57c66bc91ce81e2b (diff)
downloadchromium_src-6ab03fc09aa1a2ea4e8cec6879e6602ad5f4826d.zip
chromium_src-6ab03fc09aa1a2ea4e8cec6879e6602ad5f4826d.tar.gz
chromium_src-6ab03fc09aa1a2ea4e8cec6879e6602ad5f4826d.tar.bz2
Call GdiAlphaBlend directly instead of the AlphaBlend wrapper in msimg32.dll. The wrapper does a few additional santity checks, which I presume GdiAlphaBlend will have to handle anyway. This means we don't depend on msimg32.dll anymore.
Review URL: http://codereview.chromium.org/7813 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3656 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/clipboard_win.cc')
-rw-r--r--base/clipboard_win.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/clipboard_win.cc b/base/clipboard_win.cc
index dfdd3db..c22f2a0 100644
--- a/base/clipboard_win.cc
+++ b/base/clipboard_win.cc
@@ -317,8 +317,8 @@ void Clipboard::WriteBitmapFromHandle(HBITMAP source_hbitmap,
// Now we need to blend it into an HBITMAP we can place on the clipboard
BLENDFUNCTION bf = {AC_SRC_OVER, 0, 255, AC_SRC_ALPHA};
- ::AlphaBlend(compatible_dc, 0, 0, size.width(), size.height(),
- source_dc, 0, 0, size.width(), size.height(), bf);
+ ::GdiAlphaBlend(compatible_dc, 0, 0, size.width(), size.height(),
+ source_dc, 0, 0, size.width(), size.height(), bf);
// Clean up all the handles we just opened
::SelectObject(compatible_dc, old_hbitmap);