mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 17:39:23 +02:00
Fixed crash for linux 64bit. also will compile for fpc 2.0.4
git-svn-id: trunk@12591 -
This commit is contained in:
parent
d9d3e3ca2a
commit
a9d5aa40ef
@ -2196,7 +2196,7 @@ var
|
||||
SrcStartBit := 7;
|
||||
ShiftInc := -1;
|
||||
{$ifdef HasX}
|
||||
XImage := PPointer(AImage+1)^;
|
||||
XImage := gdk_x11_image_get_ximage(AImage);
|
||||
if XImage^.bitmap_bit_order = LSBFirst
|
||||
then begin
|
||||
SrcStartBit := 0;
|
||||
|
@ -1464,7 +1464,7 @@ begin
|
||||
{$ifdef hasx}
|
||||
if AImage = nil then Exit;
|
||||
|
||||
XImage := PPointer(AImage+1)^;
|
||||
XImage := gdk_x11_image_get_ximage(AImage);
|
||||
if XImage^.bitmap_bit_order = LSBFirst then Exit;
|
||||
{$endif}
|
||||
|
||||
|
@ -42,6 +42,7 @@ var
|
||||
gdk_display: PDisplay; external gdklib name 'gdk_display';
|
||||
|
||||
function gdk_window_xwindow(win : PGdkDrawable): TXID; cdecl; external gdklib name 'gdk_x11_drawable_get_xid';
|
||||
function gdk_x11_image_get_ximage(image:PGdkImage):PXImage;cdecl;external gdklib name 'gdk_x11_image_get_ximage';
|
||||
|
||||
{$endif}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user