mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 18:39:52 +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;
|
SrcStartBit := 7;
|
||||||
ShiftInc := -1;
|
ShiftInc := -1;
|
||||||
{$ifdef HasX}
|
{$ifdef HasX}
|
||||||
|
{$IFDEF Gtk1}
|
||||||
|
XImage := PGdkImagePrivate(AImage)^.ximage;
|
||||||
|
{$ELSE}
|
||||||
XImage := gdk_x11_image_get_ximage(AImage);
|
XImage := gdk_x11_image_get_ximage(AImage);
|
||||||
|
{$ENDIF}
|
||||||
if XImage^.bitmap_bit_order = LSBFirst
|
if XImage^.bitmap_bit_order = LSBFirst
|
||||||
then begin
|
then begin
|
||||||
SrcStartBit := 0;
|
SrcStartBit := 0;
|
||||||
|
@ -1464,7 +1464,11 @@ begin
|
|||||||
{$ifdef hasx}
|
{$ifdef hasx}
|
||||||
if AImage = nil then Exit;
|
if AImage = nil then Exit;
|
||||||
|
|
||||||
|
{$IFDEF Gtk1}
|
||||||
|
XImage := PGdkImagePrivate(AImage)^.ximage;
|
||||||
|
{$ELSE}
|
||||||
XImage := gdk_x11_image_get_ximage(AImage);
|
XImage := gdk_x11_image_get_ximage(AImage);
|
||||||
|
{$ENDIF}
|
||||||
if XImage^.bitmap_bit_order = LSBFirst then Exit;
|
if XImage^.bitmap_bit_order = LSBFirst then Exit;
|
||||||
{$endif}
|
{$endif}
|
||||||
|
|
||||||
@ -5770,7 +5774,7 @@ begin
|
|||||||
if CanRequestAlpha then Exit; // we're done
|
if CanRequestAlpha then Exit; // we're done
|
||||||
if not AIncludeAplha then Exit;
|
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);
|
pixbuf := gdk_pixbuf_add_alpha(Result, false, #0,#0,#0);
|
||||||
{$else}
|
{$else}
|
||||||
pixbuf := gdk_pixbuf_add_alpha(Result, false, 0,0,0);
|
pixbuf := gdk_pixbuf_add_alpha(Result, false, 0,0,0);
|
||||||
|
Loading…
Reference in New Issue
Block a user