From 5a9eb5cfa6700bb532ea9dcb2ab9b0b087fde6b9 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 30 May 2016 09:46:42 +0900 Subject: [PATCH] Choose the correct icon size for Windows taskbar --- atom/browser/api/atom_api_window.cc | 3 ++- docs/api/native-image.md | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/atom/browser/api/atom_api_window.cc b/atom/browser/api/atom_api_window.cc index 122c5a6..ac3c510 100644 --- a/atom/browser/api/atom_api_window.cc +++ b/atom/browser/api/atom_api_window.cc @@ -633,7 +633,8 @@ void Window::ShowDefinitionForSelection() { void Window::SetIcon(mate::Handle icon) { #if defined(OS_WIN) static_cast(window_.get())->SetIcon( - icon->GetHICON(GetSystemMetrics(SM_CXSMICON)), icon->GetHICON(256)); + icon->GetHICON(GetSystemMetrics(SM_CXSMICON)), + icon->GetHICON(GetSystemMetrics(SM_CXICON))); #elif defined(USE_X11) static_cast(window_.get())->SetIcon( icon->image().AsImageSkia()); diff --git a/docs/api/native-image.md b/docs/api/native-image.md index 9790daa..5244b71 100644 --- a/docs/api/native-image.md +++ b/docs/api/native-image.md @@ -30,6 +30,7 @@ effects it is recommended to include at least followings sizes in the icon: * 16x16 * 32x32 +* 64x64 * 256x256 ## High Resolution Image -- 2.7.4