From e2fc5e46d59fc4c0d9af874abfe19c745a266382 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Wed, 23 Jan 2013 07:59:19 +0000 Subject: Bass_interface: Fixed sick mute icon git-svn-id: http://svn.miranda-ng.org/main/trunk@3239 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/BASS_interface/src/Main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/BASS_interface/src/Main.cpp b/plugins/BASS_interface/src/Main.cpp index bec3b88642..17dac6ec6e 100644 --- a/plugins/BASS_interface/src/Main.cpp +++ b/plugins/BASS_interface/src/Main.cpp @@ -322,7 +322,7 @@ static WNDPROC OldSliderWndProc = 0; static void fnPainter(MButtonCtrl *btn, HDC hdc) { - DrawIconEx(hdc, 1, 1, btn->hIcon, 20, 20, 0, hBkgBrush, DI_NORMAL); + DrawIconEx(hdc, 0, 0, btn->hIcon, 16, 16, 0, hBkgBrush, DI_NORMAL); } static LRESULT CALLBACK SliderWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) @@ -338,7 +338,7 @@ static LRESULT CALLBACK FrameWindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPAR { switch(msg) { case WM_CREATE: - hwndMute = CreateWindow(MIRANDABUTTONCLASS, _T(""), WS_CHILD | WS_VISIBLE, 1, 1, 20, 20, hwnd, + hwndMute = CreateWindow(MIRANDABUTTONCLASS, _T(""), WS_CHILD | WS_VISIBLE, 1, 1, 16, 16, hwnd, 0, (HINSTANCE)GetWindowLongPtr(hwnd, GWLP_HINSTANCE), NULL); SendMessage(hwndMute, BUTTONSETASFLATBTN, 1, 0); { @@ -380,7 +380,7 @@ static LRESULT CALLBACK FrameWindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPAR RECT rect; GetClientRect(hwnd, &rect); if (hwndMute) - MoveWindow(hwndMute, rect.right - 21, 1, 20, 20, FALSE); + MoveWindow(hwndMute, rect.right - 20, 2, 16, 16, FALSE); SetWindowPos(hwndSlider, 0, 1, rect.top + 1 + (20-18)/2, rect.right - rect.left - 1 - 20, 18, SWP_NOZORDER); InvalidateRect(hwnd, &rect, FALSE); return 0; -- cgit v1.2.3