fix image pasting for x86 Mac
svn: r11965
This commit is contained in:
parent
82ad7da253
commit
bda26f5eaa
|
@ -534,8 +534,8 @@ wxBitmap *wxClipboard::GetClipboardBitmap(long time)
|
|||
|
||||
bbox = *(Rect *)((char *)pd XFORM_OK_PLUS sizeof(short));
|
||||
|
||||
w = bbox.right - bbox.left;
|
||||
h = bbox.bottom - bbox.top;
|
||||
w = EndianS16_BtoN(bbox.right) - EndianS16_BtoN(bbox.left);
|
||||
h = EndianS16_BtoN(bbox.bottom) - EndianS16_BtoN(bbox.top);
|
||||
|
||||
if ((w > 0) && (w <= 10000)
|
||||
&& (h > 0) && (h <= 10000)) {
|
||||
|
@ -552,6 +552,8 @@ wxBitmap *wxClipboard::GetClipboardBitmap(long time)
|
|||
if (mdc->Ok()) {
|
||||
Handle h;
|
||||
|
||||
mdc->Clear();
|
||||
|
||||
/* Do we have to put it in a real handle?
|
||||
I'm not sure... */
|
||||
h = NewHandle(size);
|
||||
|
|
Loading…
Reference in New Issue
Block a user