wine: rearrange patches to a more sensible order
[sugaredwine.git] / patches / 0021-explorer-calculate-the-maximum-taskbar-button-width.patch
blob665590816944b312abbe45795dc442c13b09437f
1 From 969d8c72038b725f2ad181efbca9e74cefbf564c Mon Sep 17 00:00:00 2001
2 From: Vincent Povirk <vincent@codeweavers.com>
3 Date: Thu, 16 Oct 2008 16:24:27 -0500
4 Subject: [PATCH] explorer: calculate the maximum taskbar button width from the height
6 ---
7 programs/explorer/tasklist.c | 3 +--
8 1 files changed, 1 insertions(+), 2 deletions(-)
10 diff --git a/programs/explorer/tasklist.c b/programs/explorer/tasklist.c
11 index de46024..72394d5 100644
12 --- a/programs/explorer/tasklist.c
13 +++ b/programs/explorer/tasklist.c
14 @@ -44,7 +44,6 @@ static int toplevels_size = 0; /* amount of allocated memory in toplevels[] */
16 HWND foreground;
18 -#define MAX_BUTTON_WIDTH 150
19 static int button_width = 0;
21 static LRESULT WINAPI button_wndproc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam);
22 @@ -74,7 +73,7 @@ static void refresh_buttons(void)
24 GetWindowRect(tasklist, &rc);
26 - button_width = min(MAX_BUTTON_WIDTH, (rc.right - rc.left) / toplevels_len);
27 + button_width = min((rc.bottom - rc.top) * 9, (rc.right - rc.left) / toplevels_len);
29 for (i=0; i<toplevels_len; i++)
31 --
32 1.5.6.5