mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 09:39:25 +02:00
LCL/TCanvas: Switch x and y loops in TCanvas.BrushCopy. Patch by lagprogramming, https://forum.lazarus.freepascal.org/index.php/topic,62996.msg476742.html
This commit is contained in:
parent
3a2c3212cc
commit
c0946573ce
@ -754,8 +754,8 @@ begin
|
||||
|
||||
// Next copy the bitmap to a intfimage to be able to make the color change
|
||||
lIntfImage.LoadFromBitmap(lPaintedBitmap.Handle, 0);
|
||||
for x := 0 to lSrcWidth-1 do
|
||||
for y := 0 to lSrcHeight-1 do
|
||||
for y := 0 to lSrcHeight-1 do
|
||||
for x := 0 to lSrcWidth-1 do
|
||||
begin
|
||||
lPixelColor := lIntfImage.Colors[x, y];
|
||||
if (lPixelColor.red = lTransparentColor.red) and
|
||||
|
Loading…
Reference in New Issue
Block a user