mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 06:19:17 +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
|
// Next copy the bitmap to a intfimage to be able to make the color change
|
||||||
lIntfImage.LoadFromBitmap(lPaintedBitmap.Handle, 0);
|
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
|
begin
|
||||||
lPixelColor := lIntfImage.Colors[x, y];
|
lPixelColor := lIntfImage.Colors[x, y];
|
||||||
if (lPixelColor.red = lTransparentColor.red) and
|
if (lPixelColor.red = lTransparentColor.red) and
|
||||||
|
Loading…
Reference in New Issue
Block a user