Skip to content

Commit a52f1c4

Browse files
committed
[Bug 17352] Make sure pAlpha is respected in canvasSetColor()
1 parent 8bfce87 commit a52f1c4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/lcb/notes/17352.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# LiveCode Builder Host Library
2+
## Canvas library
3+
4+
# [17352] pAlpha is now taken into account in canvasSetColor()

extensions/libraries/canvas/canvas.lcb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Description:
8686
Sets the current color of the canvas to the given RGBA value.
8787
*/
8888
public handler canvasSetColor(in pRed as Real, in pGreen as Real, in pBlue as Real, in pAlpha as Real) returns nothing
89-
set the paint of sCanvas to solid paint with color [pRed, pGreen, pBlue, pRed]
89+
set the paint of sCanvas to solid paint with color [pRed, pGreen, pBlue, pAlpha]
9090
end handler
9191

9292
/*

0 commit comments

Comments
 (0)