Alexandre Julliard : user32: Removed unused NC_DrawGrayButton function.
Alexandre Julliard
julliard at winehq.org
Thu Nov 8 07:07:29 CST 2007
Module: wine
Branch: master
Commit: 4f5c61ac7cbbd4b27dd783c788006748c851d1f1
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4f5c61ac7cbbd4b27dd783c788006748c851d1f1
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Nov 7 19:46:34 2007 +0100
user32: Removed unused NC_DrawGrayButton function.
---
dlls/user32/nonclient.c | 36 ------------------------------------
1 files changed, 0 insertions(+), 36 deletions(-)
diff --git a/dlls/user32/nonclient.c b/dlls/user32/nonclient.c
index f93b94f..45ac8cf 100644
--- a/dlls/user32/nonclient.c
+++ b/dlls/user32/nonclient.c
@@ -32,8 +32,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(nonclient);
-BOOL NC_DrawGrayButton(HDC hdc, int x, int y);
-
static const BYTE lpGrayMask[] = { 0xAA, 0xA0,
0x55, 0x50,
0xAA, 0xA0,
@@ -1626,40 +1624,6 @@ LRESULT NC_HandleSysCommand( HWND hwnd, WPARAM wParam, LPARAM lParam )
return 0;
}
-/*************************************************************
-* NC_DrawGrayButton
-*
-* Stub for the grayed button of the caption
-*
-*************************************************************/
-
-BOOL NC_DrawGrayButton(HDC hdc, int x, int y)
-{
- HBITMAP hMaskBmp;
- HDC hdcMask;
- HBRUSH hOldBrush;
-
- hMaskBmp = CreateBitmap (12, 10, 1, 1, lpGrayMask);
-
- if(hMaskBmp == 0)
- return FALSE;
-
- hdcMask = CreateCompatibleDC (0);
- SelectObject (hdcMask, hMaskBmp);
-
- /* Draw the grayed bitmap using the mask */
- hOldBrush = SelectObject (hdc, (HGDIOBJ)RGB(128, 128, 128));
- BitBlt (hdc, x, y, 12, 10,
- hdcMask, 0, 0, 0xB8074A);
-
- /* Clean up */
- SelectObject (hdc, hOldBrush);
- DeleteObject(hMaskBmp);
- DeleteDC (hdcMask);
-
- return TRUE;
-}
-
/***********************************************************************
* GetTitleBarInfo (USER32.@)
* TODO: Handle STATE_SYSTEM_PRESSED
More information about the wine-cvs
mailing list