mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-09 12:35:55 +02:00
Fixed compiliation for gtk1
git-svn-id: trunk@12592 -
This commit is contained in:
parent
a9d5aa40ef
commit
d20f251adf
@ -2196,7 +2196,11 @@ var
|
||||
SrcStartBit := 7;
|
||||
ShiftInc := -1;
|
||||
{$ifdef HasX}
|
||||
{$IFDEF Gtk1}
|
||||
XImage := PGdkImagePrivate(AImage)^.ximage;
|
||||
{$ELSE}
|
||||
XImage := gdk_x11_image_get_ximage(AImage);
|
||||
{$ENDIF}
|
||||
if XImage^.bitmap_bit_order = LSBFirst
|
||||
then begin
|
||||
SrcStartBit := 0;
|
||||
|
@ -1464,7 +1464,11 @@ begin
|
||||
{$ifdef hasx}
|
||||
if AImage = nil then Exit;
|
||||
|
||||
{$IFDEF Gtk1}
|
||||
XImage := PGdkImagePrivate(AImage)^.ximage;
|
||||
{$ELSE}
|
||||
XImage := gdk_x11_image_get_ximage(AImage);
|
||||
{$ENDIF}
|
||||
if XImage^.bitmap_bit_order = LSBFirst then Exit;
|
||||
{$endif}
|
||||
|
||||
@ -5770,7 +5774,7 @@ begin
|
||||
if CanRequestAlpha then Exit; // we're done
|
||||
if not AIncludeAplha then Exit;
|
||||
|
||||
{$ifdef VER2_0}
|
||||
{$if defined(VER2_0) or defined(GTK1)}
|
||||
pixbuf := gdk_pixbuf_add_alpha(Result, false, #0,#0,#0);
|
||||
{$else}
|
||||
pixbuf := gdk_pixbuf_add_alpha(Result, false, 0,0,0);
|
||||
|
Loading…
Reference in New Issue
Block a user