projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
886ef17
)
win: Use DIP rect for tray icon's bounds
author
Cheng Zhao
<zcbenz@gmail.com>
Tue, 21 Jun 2016 07:05:28 +0000
(16:05 +0900)
committer
Cheng Zhao
<zcbenz@gmail.com>
Tue, 21 Jun 2016 07:05:28 +0000
(16:05 +0900)
atom/browser/ui/win/notify_icon.cc
patch
|
blob
|
history
diff --git
a/atom/browser/ui/win/notify_icon.cc
b/atom/browser/ui/win/notify_icon.cc
index
d12b328
..
0ccf46b
100644
(file)
--- a/
atom/browser/ui/win/notify_icon.cc
+++ b/
atom/browser/ui/win/notify_icon.cc
@@
-13,6
+13,7
@@
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/screen.h"
+#include "ui/gfx/win/dpi.h"
#include "ui/views/controls/menu/menu_runner.h"
namespace atom {
@@
-165,7
+166,7
@@
gfx::Rect NotifyIcon::GetBounds() {
RECT rect = { 0 };
Shell_NotifyIconGetRect(&icon_id, &rect);
- return gfx::
Rect(rect
);
+ return gfx::
win::ScreenToDIPRect(gfx::Rect(rect)
);
}
void NotifyIcon::InitIconData(NOTIFYICONDATA* icon_data) {