mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-26 22:09:21 +02:00
fixed gtk intf getting line end boundary
git-svn-id: trunk@9208 -
This commit is contained in:
parent
ed397852ff
commit
606d061e80
@ -2550,7 +2550,7 @@ begin
|
|||||||
// Palette
|
// Palette
|
||||||
Desc^.HasPalette:=(not IsGdkBitmap)
|
Desc^.HasPalette:=(not IsGdkBitmap)
|
||||||
and (Visual^.thetype in [GDK_VISUAL_GRAYSCALE,
|
and (Visual^.thetype in [GDK_VISUAL_GRAYSCALE,
|
||||||
GDK_VISUAL_STATIC_COLOR,GDK_VISUAL_PSEUDO_COLOR]);
|
GDK_VISUAL_STATIC_COLOR,GDK_VISUAL_PSEUDO_COLOR]);
|
||||||
// Depth
|
// Depth
|
||||||
if IsGdkBitmap then
|
if IsGdkBitmap then
|
||||||
Desc^.Depth:=1
|
Desc^.Depth:=1
|
||||||
@ -2792,12 +2792,7 @@ begin
|
|||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
|
||||||
// See also GetWindowRawImageDescription
|
// See also GetWindowRawImageDescription
|
||||||
RawImage.Description.AlphaLineEnd:=rileDWordBoundary;// gdk_image_get uses rileDWordBoundary
|
RawImage.Description.AlphaLineEnd:=rileByteBoundary;// gdk_image_get uses rileByteBoundary
|
||||||
{case AnImage^.Depth of
|
|
||||||
0..8: RawImage.Description.AlphaLineEnd:=rileByteBoundary;
|
|
||||||
9..32: RawImage.Description.AlphaLineEnd:=rileDWordBoundary;// X does not seem to use Word boundaries
|
|
||||||
else RawImage.Description.AlphaLineEnd:=rileQWordBoundary;
|
|
||||||
end;}
|
|
||||||
RawImage.Description.AlphaBitsPerPixel:=GetPGdkImageBitsPerPixel(AnImage);
|
RawImage.Description.AlphaBitsPerPixel:=GetPGdkImageBitsPerPixel(AnImage);
|
||||||
|
|
||||||
// consistency checks
|
// consistency checks
|
||||||
|
Loading…
Reference in New Issue
Block a user