mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 12:08:09 +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)
|
||||
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');
|
||||
end;
|
||||
if ImgDataSize <> GdkImage^.bpl * ImgHeight
|
||||
|
Loading…
Reference in New Issue
Block a user