Browse Source

* switch loops in TFPCustomCanvas.Erase closes #40246

(cherry picked from commit 5e47b4a7b9c455d2fd56b1bcb57ac2df04358539)
marcoonthegit 2 years ago
parent
commit
c944b0446e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/fcl-image/src/fpcanvas.inc

+ 2 - 2
packages/fcl-image/src/fpcanvas.inc

@@ -586,8 +586,8 @@ procedure TFPCustomCanvas.Erase;
 var
   x,y:Integer;
 begin
-  for x:=0 to Width-1 do
-    for y:=0 to Height-1 do
+  for y:=0 to Height-1 do
+    for x:=0 to Width-1 do
       Colors[x,y]:=colTransparent;
 end;