summaryrefslogtreecommitdiffstats
path: root/win/tkWinWm.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2020-11-08 13:46:37 (GMT)
committerfvogel <fvogelnew1@free.fr>2020-11-08 13:46:37 (GMT)
commit14635cf721890ec922b5b34f333ac5ac93346c9c (patch)
treebba45650776ea6e5c3ba381bce5ecfebb20288f5 /win/tkWinWm.c
parentb0a82cca7d1314476ae7fe568baa8e06358554a5 (diff)
downloadtk-14635cf721890ec922b5b34f333ac5ac93346c9c.zip
tk-14635cf721890ec922b5b34f333ac5ac93346c9c.tar.gz
tk-14635cf721890ec922b5b34f333ac5ac93346c9c.tar.bz2
Remove duplicate code.
Diffstat (limited to 'win/tkWinWm.c')
-rw-r--r--win/tkWinWm.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/win/tkWinWm.c b/win/tkWinWm.c
index 911291d..739f5f4 100644
--- a/win/tkWinWm.c
+++ b/win/tkWinWm.c
@@ -500,47 +500,7 @@ static void WmUpdateGeom(WmInfo *wmPtr, TkWindow *winPtr);
#define WIDTHBYTES(bits) ((((bits) + 31)>>5)<<2)
-/*
- *----------------------------------------------------------------------
- *
- * DIBNumColors --
- *
- * Calculates the number of entries in the color table, given by LPSTR
- * lpbi - pointer to the CF_DIB memory block. Used by titlebar icon code.
- *
- * Results:
- * WORD - Number of entries in the color table.
- *
- *----------------------------------------------------------------------
- */
-
-static WORD
-DIBNumColors(
- LPSTR lpbi)
-{
- WORD wBitCount;
- DWORD dwClrUsed;
-
- dwClrUsed = ((LPBITMAPINFOHEADER) lpbi)->biClrUsed;
-
- if (dwClrUsed) {
- return (WORD) dwClrUsed;
- }
-
- wBitCount = ((LPBITMAPINFOHEADER) lpbi)->biBitCount;
- switch (wBitCount) {
- case 1:
- return 2;
- case 4:
- return 16;
- case 8:
- return 256;
- default:
- return 0;
- }
-}
-
/*
*----------------------------------------------------------------------
*