Fix "gtk+ rendering" (GitHub Issue #443)
This commit is a minimal fix for issue #443. A more complete fix is in Git 'master', i.e. in FLTK 1.4.0.
This commit is contained in:
parent
1b5db5519d
commit
84c9432d2a
2
CHANGES
2
CHANGES
@ -14,6 +14,8 @@ Details:
|
||||
Fix compiler warning as pointed out in PR #693
|
||||
Fix another compiler warning (#693)
|
||||
Remove unused variable, fix "type issue" (#445, part 2)
|
||||
Fix stack buffer overflow found by address sanitizer
|
||||
Fix "gtk+ rendering" (GitHub Issue #443)
|
||||
|
||||
ManoloFLTK:
|
||||
macOS platform: fix for issue #325 Disabling IM disables Greek and Cyrillic layouts
|
||||
|
@ -3,7 +3,7 @@
|
||||
//
|
||||
// Lighted button widget for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2015 by Bill Spitzak and others.
|
||||
// Copyright 1998-2023 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software. Distribution and use rights are outlined in
|
||||
// the file "COPYING" which should have been included with this file. If this
|
||||
@ -51,7 +51,7 @@ void Fl_Light_Button::draw() {
|
||||
draw_box(down_box(), x()+dx, y()+dy, W, W, FL_BACKGROUND2_COLOR);
|
||||
if (value()) {
|
||||
if (Fl::is_scheme("gtk+")) {
|
||||
fl_color(FL_SELECTION_COLOR);
|
||||
fl_color(fl_contrast(FL_SELECTION_COLOR, FL_BACKGROUND2_COLOR));
|
||||
} else {
|
||||
fl_color(col);
|
||||
}
|
||||
@ -77,7 +77,7 @@ void Fl_Light_Button::draw() {
|
||||
int tdy = dy + (W - tW) / 2;
|
||||
|
||||
if (Fl::is_scheme("gtk+")) {
|
||||
fl_color(FL_SELECTION_COLOR);
|
||||
fl_color(fl_contrast(FL_SELECTION_COLOR, FL_BACKGROUND2_COLOR));
|
||||
tW --;
|
||||
fl_pie(x() + tdx - 1, y() + tdy - 1, tW + 3, tW + 3, 0.0, 360.0);
|
||||
fl_color(fl_color_average(FL_WHITE, FL_SELECTION_COLOR, 0.2f));
|
||||
|
Loading…
x
Reference in New Issue
Block a user