* fixed bug in FlipHorz and FlipVert
[glBitmap.git] / glBitmap.pas
index b1b4c65..c13d85c 100644 (file)
@@ -8140,7 +8140,7 @@ begin
           Dec(TempDestData, fPixelSize);
         end;
       end;
-      SetDataPointer(DestData, Format); //be careful, Data could be freed by this method
+      SetDataPointer(DestData, Format, Width, Height); //be careful, Data could be freed by this method
       result := true;
     except
       if Assigned(DestData) then
@@ -8168,7 +8168,7 @@ begin
         Dec(TempDestData, fRowSize);
         Inc(SourceData, fRowSize);
       end;
-      SetDataPointer(DestData, Format); //be careful, Data could be freed by this method
+      SetDataPointer(DestData, Format, Width, Height); //be careful, Data could be freed by this method
       result := true;
     except
       if Assigned(DestData) then