summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2020-04-21 09:38:39 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2020-04-21 09:38:39 +0200
commite3ad0ee441147a28798e477bc44e30aa057a3b1a (patch)
treead76fd1f52b6db7f0c046d0d2581971b53438a21 /src/drivers
parent811033af19a06681c529c8729a8bf870a909cea0 (diff)
Avoid useless multiplication by 1 operations.
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/Cocoa/Fl_Cocoa_Window_Driver.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.cxx b/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.cxx
index c9f8fdda3..ea26c4d47 100644
--- a/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.cxx
+++ b/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.cxx
@@ -334,7 +334,7 @@ void Fl_Cocoa_Window_Driver::capture_titlebar_and_borders(Fl_RGB_Image*& top, Fl
uchar *last = rgba + 4 * scaled_w * htop * 4;
while (p < last) {
uchar q = *(p+3);
- if (q) {
+ if (q && q != 0xff) {
float m = 255./q;
*p++ *= m;
*p++ *= m;