diff options
author | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-28 15:08:12 +0000 |
---|---|---|
committer | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-28 15:08:12 +0000 |
commit | 09c83db3e7e1b6b165f3b6eb8f7ab1bf7a44b376 (patch) | |
tree | 015ecb3e39c12b13f0ccbb6260ebd7df0353346e /webkit/glue/webcursor.cc | |
parent | bac2123eedf2fc989af666845d46cf7871f90bf9 (diff) | |
download | chromium_src-09c83db3e7e1b6b165f3b6eb8f7ab1bf7a44b376.zip chromium_src-09c83db3e7e1b6b165f3b6eb8f7ab1bf7a44b376.tar.gz chromium_src-09c83db3e7e1b6b165f3b6eb8f7ab1bf7a44b376.tar.bz2 |
Fix a bug in cursor handling when the width and height of the image differ. We
were using the width of the image, when the width is actually inferred by the
Windows API call. Instead, we were supposed to pass the height.
BUG=100
Review URL: http://codereview.chromium.org/8646
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4063 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webcursor.cc')
-rw-r--r-- | webkit/glue/webcursor.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webkit/glue/webcursor.cc b/webkit/glue/webcursor.cc index 857ac29..718be01 100644 --- a/webkit/glue/webcursor.cc +++ b/webkit/glue/webcursor.cc @@ -127,7 +127,7 @@ HCURSOR WebCursor::GetCustomCursor() const { HBITMAP bitmap_handle = CreateDIBSection(dc, &cursor_bitmap_info, DIB_RGB_COLORS, 0, 0, 0); SkAutoLockPixels bitmap_lock(bitmap_); - SetDIBits(0, bitmap_handle, 0, bitmap_.width(), + SetDIBits(0, bitmap_handle, 0, bitmap_.height(), bitmap_.getPixels(), &cursor_bitmap_info, DIB_RGB_COLORS); HBITMAP old_bitmap = reinterpret_cast<HBITMAP>(SelectObject(workingDC, |