fix gtk LoadBitmapData for images with Width not divided by 8

git-svn-id: trunk@12561 -
This commit is contained in:
paul 2007-10-23 09:01:50 +00:00
parent 7d152dfb5b
commit 8649f4eda1

View File

@ -865,7 +865,7 @@ var
BitsPtr: Pointer;
Src, Dst: PByte;
begin
LineSize := Width shr 3;
LineSize := (Width + 7) shr 3;
if (LineSize and 1) <> 0
then begin
// the gdk_bitmap_create_from_data expects data byte aligned while