mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 19:19:19 +02:00
lcl: gtk2: debug
git-svn-id: trunk@65082 -
This commit is contained in:
parent
e70b03a463
commit
5c8e7c1abb
@ -404,6 +404,14 @@ begin
|
|||||||
|
|
||||||
if ARawImage.Description.BitsPerPixel <> GetGdkImageBitsPerPixel(GdkImage)
|
if ARawImage.Description.BitsPerPixel <> GetGdkImageBitsPerPixel(GdkImage)
|
||||||
then begin
|
then begin
|
||||||
|
DebugLn('TGtk2WidgetSet.CreateBitmapFromRawImage GdkImage: ',
|
||||||
|
' BytesPerLine=',dbgs(GdkImage^.bpl),
|
||||||
|
' BitsPerPixel=',dbgs(GetGdkImageBitsPerPixel(GdkImage)),
|
||||||
|
' ByteOrder=',dbgs(ord(GdkImage^.byte_order)),
|
||||||
|
' Visual^.depth=',dbgs(Visual^.depth),
|
||||||
|
' ImgDepth=',dbgs(ImgDepth),
|
||||||
|
' ARawImage.Description.BitsPerPixel=',dbgs(ARawImage.Description.BitsPerPixel),
|
||||||
|
'');
|
||||||
RaiseGDBException('TGtk2WidgetSet.CreateBitmapFromRawImage Incompatible BitsPerPixel');
|
RaiseGDBException('TGtk2WidgetSet.CreateBitmapFromRawImage Incompatible BitsPerPixel');
|
||||||
end;
|
end;
|
||||||
if ImgDataSize <> GdkImage^.bpl * ImgHeight
|
if ImgDataSize <> GdkImage^.bpl * ImgHeight
|
||||||
|
Loading…
Reference in New Issue
Block a user