Delphi 2.0 needs to allocate a bitmap bigger than 4096 bits wide.
This commit is contained in:
parent
954303d678
commit
16f0dfbaa5
|
@ -212,7 +212,7 @@ HBITMAP32 WINAPI CreateCompatibleBitmap32( HDC32 hdc, INT32 width, INT32 height)
|
||||||
|
|
||||||
TRACE(bitmap, "(%04x,%d,%d) = \n", hdc, width, height );
|
TRACE(bitmap, "(%04x,%d,%d) = \n", hdc, width, height );
|
||||||
if (!(dc = DC_GetDCPtr( hdc ))) return 0;
|
if (!(dc = DC_GetDCPtr( hdc ))) return 0;
|
||||||
if ((width >0x1000) || (height > 0x1000)) {
|
if ((width >= 0x10000) || (height >= 0x10000)) {
|
||||||
FIXME(bitmap,"got bad width %d or height %d, please look for reason\n",
|
FIXME(bitmap,"got bad width %d or height %d, please look for reason\n",
|
||||||
width, height );
|
width, height );
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue