Lines Matching refs:bmp2
138 BITMAPINFOHEADER2 bmp2; in OS2HandleToOOoBmp() member
151 memset(&(bm.bmp2), 0, sizeof(bm.bmp2)); in OS2HandleToOOoBmp()
152 bm.bmp2.cbFix = 16; in OS2HandleToOOoBmp()
153 GpiQueryBitmapInfoHeader(hbm, &bm.bmp2); in OS2HandleToOOoBmp()
156 if ( lBitCountScreen < bm.bmp2.cBitCount ) in OS2HandleToOOoBmp()
157 bm.bmp2.cBitCount = lBitCountScreen; in OS2HandleToOOoBmp()
159 if ( bm.bmp2.cBitCount == 16 ) in OS2HandleToOOoBmp()
160 bm.bmp2.cBitCount = 24; in OS2HandleToOOoBmp()
162 if ( bm.bmp2.cPlanes != 1 ) { in OS2HandleToOOoBmp()
170 sizl.cx = bm.bmp2.cx; in OS2HandleToOOoBmp()
171 sizl.cy = bm.bmp2.cy; in OS2HandleToOOoBmp()
180 cbBuffer = (((bm.bmp2.cBitCount * bm.bmp2.cx) + 31) / 32) * 4 * bm.bmp2.cy * bm.bmp2.cPlanes; in OS2HandleToOOoBmp()
183 GpiQueryBitmapBits(hps, 0L, (LONG) bm.bmp2.cy, pbBuffer, (BITMAPINFO2*)&bm); in OS2HandleToOOoBmp()
191 int iNumColors, numbits=bm.bmp2.cPlanes * bm.bmp2.cBitCount; in OS2HandleToOOoBmp()
193 iNumColors = bm.bmp2.cclrUsed ? bm.bmp2.cclrUsed : 2<<numbits; in OS2HandleToOOoBmp()
195 iNumColors = bm.bmp2.cclrUsed; in OS2HandleToOOoBmp()
213 memcpy( pbih, &bm.bmp2, sizeof(W32_BITMAPINFOHEADER)); in OS2HandleToOOoBmp()