diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/gfx/icon_util.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/gfx/icon_util.cc b/app/gfx/icon_util.cc index 4134c90..ae77b43 100644 --- a/app/gfx/icon_util.cc +++ b/app/gfx/icon_util.cc @@ -115,6 +115,7 @@ SkBitmap* IconUtil::CreateSkBitmapFromHICON(HICON icon, const gfx::Size& s) { DCHECK(bitmap); bitmap->setConfig(SkBitmap::kARGB_8888_Config, s.width(), s.height()); bitmap->allocPixels(); + bitmap->eraseARGB(0, 0, 0, 0); SkAutoLockPixels bitmap_lock(*bitmap); // Now we should create a DIB so that we can use ::DrawIconEx in order to |