summaryrefslogtreecommitdiff
path: root/src/fl_color.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-09-15 15:01:12 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-09-15 15:01:12 +0200
commit699cca8ff4367c15ea0cda1b5750c68eac174816 (patch)
tree9bba71685e9b649c80c5e1acff32597a05008a22 /src/fl_color.cxx
parent700fb1aadd86f6fc81f4acccfe44dd539f487c57 (diff)
Make Fl::set_color(r,g,b,a) effective under Wayland and macOS.
Diffstat (limited to 'src/fl_color.cxx')
-rw-r--r--src/fl_color.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fl_color.cxx b/src/fl_color.cxx
index d28533fe9..d925a73ee 100644
--- a/src/fl_color.cxx
+++ b/src/fl_color.cxx
@@ -68,6 +68,8 @@ void Fl::set_color(Fl_Color i, uchar red, uchar green, uchar blue) {
Sets an entry in the fl_color index table.
You can set it to any 8-bit RGBA color.
+ \note The color transparency is effective under the Wayland, hybrid Wayland/X11 and macOS platforms, whereas it has no effect under the X11 and Windows platforms. It's also effective for widgets added to an Fl_Gl_Window.
+ \version 1.4
*/
void Fl::set_color(Fl_Color i, uchar red, uchar green, uchar blue, uchar alpha) {
Fl::set_color((Fl_Color)(i & 255),