- Timestamp:
- Nov 20, 2000, 9:28:16 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/winicon.cpp
r4612 r4649 1 /* $Id: winicon.cpp,v 1.1 4 2000-11-18 14:08:54sandervl Exp $ */1 /* $Id: winicon.cpp,v 1.15 2000-11-20 20:28:16 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Icon Code for OS/2 … … 820 820 */ 821 821 HGLOBAL CURSORICON_ExtCopy(HGLOBAL Handle, UINT nType, 822 823 822 INT iDesiredCX, INT iDesiredCY, 823 UINT nFlags) 824 824 { 825 825 HGLOBAL hNew=0; … … 827 827 if(Handle == 0) 828 828 { 829 829 return 0; 830 830 } 831 831 /* Best Fit or Monochrome */ … … 913 913 pBits = (LPBYTE)LockResource( hMem ); 914 914 915 916 917 915 if(nFlags & LR_DEFAULTSIZE) 916 { 917 iTargetCY = GetSystemMetrics(SM_CYICON); 918 918 iTargetCX = GetSystemMetrics(SM_CXICON); 919 919 } 920 920 921 921 /* Create a New Icon with the proper dimension … … 974 974 abs(height - entry->ResInfo.icon.bHeight) == iYDiff) 975 975 { 976 #ifdef __WIN32OS2__ 977 iTempColorDiff = abs(colors - (1 << entry->wBitCount)); 978 #else 976 979 iTempColorDiff = abs(colors - entry->ResInfo.icon.bColorCount); 980 #endif 977 981 if(iColorDiff > iTempColorDiff) 978 982 {
Note:
See TracChangeset
for help on using the changeset viewer.