Alexandre Julliard : explorer: Vertically center the system tray icons.
Module: wine Branch: master Commit: 3c33d6d32c508e516248ab7cb61e96cdcb8ca952 URL: http://source.winehq.org/git/wine.git/?a=commit;h=3c33d6d32c508e516248ab7cb6... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri May 27 21:16:40 2016 +0900 explorer: Vertically center the system tray icons. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- programs/explorer/systray.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/programs/explorer/systray.c b/programs/explorer/systray.c index 40e03e9..daaae87 100644 --- a/programs/explorer/systray.c +++ b/programs/explorer/systray.c @@ -125,8 +125,8 @@ static RECT get_icon_rect( struct icon *icon ) rect.right = tray_width - icon_cx * icon->display; rect.left = rect.right - icon_cx; - rect.top = 0; - rect.bottom = icon_cy; + rect.top = (tray_height - icon_cy) / 2; + rect.bottom = rect.top + icon_cy; return rect; } @@ -297,9 +297,9 @@ static void invalidate_icons( unsigned int start, unsigned int end ) RECT rect; rect.left = tray_width - (end + 1) * icon_cx; - rect.top = 0; + rect.top = (tray_height - icon_cy) / 2; rect.right = tray_width - start * icon_cx; - rect.bottom = icon_cy; + rect.bottom = rect.top + icon_cy; InvalidateRect( tray_window, &rect, TRUE ); }
participants (1)
-
Alexandre Julliard