More bitamp and image fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15230 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -661,12 +661,20 @@ bool wxBitmap::CreateFromImage (
|
||||
// Have to do something similar to WIN32's StretchDIBits, use GpiBitBlt
|
||||
// in combination with setting the bits into the selected bitmap
|
||||
//
|
||||
lScans = ::GpiSetBitmapBits( hPS
|
||||
,0 // Start at the bottom
|
||||
,(LONG)nHeight // One line per scan
|
||||
,(PBYTE)pucBits
|
||||
,&vInfo
|
||||
);
|
||||
if ((lScans = ::GpiSetBitmapBits( hPS
|
||||
,0 // Start at the bottom
|
||||
,(LONG)nHeight // One line per scan
|
||||
,(PBYTE)pucBits
|
||||
,&vInfo
|
||||
)) == GPI_ALTERROR)
|
||||
{
|
||||
ERRORID vError;
|
||||
wxString sError;
|
||||
|
||||
vError = ::WinGetLastError(vHabmain);
|
||||
sError = wxPMErrorToStr(vError);
|
||||
}
|
||||
|
||||
hPSScreen = ::GpiCreatePS( vHabmain
|
||||
,hDCScreen
|
||||
,&vSize
|
||||
|
Reference in New Issue
Block a user