- Timestamp:
- Mar 18, 2002, 2:03:53 PM (23 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/dib.cpp
r4601 r8097 1 /* $Id: dib.cpp,v 1. 8 2000-11-15 20:44:26sandervl Exp $ */1 /* $Id: dib.cpp,v 1.9 2002-03-18 13:03:53 sandervl Exp $ */ 2 2 3 3 /* … … 82 82 else /* assume BITMAPINFOHEADER */ 83 83 { 84 colors = info->bmiHeader.biClrUsed; 85 if (!colors && (info->bmiHeader.biBitCount <= 8)) 86 colors = 1 << info->bmiHeader.biBitCount; 84 #ifdef __WIN32OS2__ 85 /* many windows apps write bitmaps that have 0x1000000 in biClrUsed when 86 in 24 bpp, so I think we can do generic action 24bpp - no clrUsed */ 87 colors = 0; 88 if (info->bmiHeader.biBitCount <= 8) 89 { 90 #endif 91 colors = info->bmiHeader.biClrUsed; 92 if (!colors) 93 colors = 1 << info->bmiHeader.biBitCount; 94 #ifdef __WIN32OS2__ 95 } 96 #endif 87 97 return sizeof(BITMAPINFOHEADER) + colors * 88 98 ((coloruse == DIB_RGB_COLORS) ? sizeof(RGBQUAD) : sizeof(WORD)); -
trunk/src/user32/oslibwin.cpp
r8035 r8097 1 /* $Id: oslibwin.cpp,v 1.11 5 2002-03-05 16:09:17sandervl Exp $ */1 /* $Id: oslibwin.cpp,v 1.116 2002-03-18 13:03:53 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 250 250 return WinSetWindowULong(hwnd, offset, value); 251 251 } 252 //****************************************************************************** 253 //****************************************************************************** 254 BOOL OSLibWinGetMinPosition(HWND hwnd, PSWP pswp, PPOINTL pointl) 255 { 256 return WinGetMinPosition(hwnd, pswp, pointl); 257 } 258 252 259 //****************************************************************************** 253 260 //****************************************************************************** -
trunk/src/user32/oslibwin.h
r7780 r8097 1 /* $Id: oslibwin.h,v 1.6 4 2002-01-20 15:26:21sandervl Exp $ */1 /* $Id: oslibwin.h,v 1.65 2002-03-18 13:03:53 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 28 28 ULONG ulReserved2; 29 29 } SWP, *PSWP; 30 typedef POINTL *PPOINTL; 30 31 #endif 31 32 … … 198 199 BOOL OSLibWinSetDlgItemText(HWND hwndDlg,ULONG idItem,char* pszText); 199 200 BOOL OSLibWinQueryPointerPos(PPOINT pptlPoint); //pptlPoint == POINTL pointer! 201 BOOL OSLibWinGetMinPosition(HWND hwndDlg,PSWP swp, PPOINTL pointl); 200 202 BOOL OSLibWinSetPointerPos(int x, int y); 201 203
Note:
See TracChangeset
for help on using the changeset viewer.