Switched to gfx::Rect constructor that takes a RECT

As per @zcbenz's suggestion the rect passed to the click event handler now passes a rect constructed using `gfx::Rect(const RECT& r)`.
This commit is contained in:
Seppe Stas 2015-06-08 19:04:56 +02:00
parent e5c4e34ac4
commit 16c08e7e37

View file

@ -58,9 +58,7 @@ void NotifyIcon::HandleClickEvent(const gfx::Point& cursor_pos,
RECT rect;
Shell_NotifyIconGetRect(&icon_id, &rect);
int width = rect.right - rect.left;
int height = rect.bottom - rect.top;
NotifyClicked(gfx::Rect(rect.left, rect.top, width, height));
NotifyClicked(gfx::Rect(rect));
return;
}