Modified Version of Qt-485 (sans Q3Support): QtGui4.dll and QtGuid4.dll
Better error reporting for the "Snake River" Instability ("failed to create dibsection").
Phil Weinstein, CADSWES, 8-28-2013
Change to file c:\riverware\tools\Qt-485\src\gui\styles\qwindowsxpstyle.cpp, near line 394 in buffer():
Additions shown in Red.
// Create the pixmap bufferPixels = 0; bufferBitmap = CreateDIBSection(bufferDC, &bmi, DIB_RGB_COLORS, (void **) &bufferPixels, 0, 0); GdiFlush(); nullBitmap = (HBITMAP)SelectObject(bufferDC, bufferBitmap); if (!bufferBitmap) { DWORD dwError = GetLastError(); qErrnoWarning(dwError,"QWindowsXPStylePrivate::buffer(w,h), failed to create dibsection"); bufferW = 0; bufferH = 0; return 0; } if (!bufferPixels) { DWORD dwError = GetLastError(); qErrnoWarning(dwError,"QWindowsXPStylePrivate::buffer(w,h), did not allocate pixel data"); bufferW = 0; bufferH = 0; return 0; } |