Hi Filip,
--- Filip Navara xnavara@volny.cz wrote:
That's well-known. See bug #400. It might disapper if you use 256 or 32bit color video mode...
In my tree I have enabled IntGdiCreateBrushIndirect and some hacking with it and have OpenOffice running without it crashing but I need to implement the following function in win32k like in Wine or find a Win32k function that does something like it.
static HGLOBAL16 dib_copy(BITMAPINFO *info, UINT coloruse) { BITMAPINFO *newInfo; HGLOBAL16 hmem; INT size;
if (info->bmiHeader.biCompression) size = info->bmiHeader.biSizeImage; else size = DIB_GetDIBImageBytes(info->bmiHeader.biWidth, info->bmiHeader.biHeight, info->bmiHeader.biBitCount); size += DIB_BitmapInfoSize( info, coloruse );
if (!(hmem = GlobalAlloc16( GMEM_MOVEABLE, size ))) { return 0; } newInfo = (BITMAPINFO *) GlobalLock16( hmem ); memcpy( newInfo, info, size ); GlobalUnlock16( hmem ); return hmem; }
__________________________________ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo