Skip to content

Commit

Permalink
Support pre C++17 compiler.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrincayc committed Jan 13, 2023
1 parent 59e5728 commit bfc9554
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wxTerminal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1862,7 +1862,7 @@ wxTerminal::UpdateSelectionColors()
0.587 * wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHT).Green() / 255 +
0.114 * wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHT).Blue() / 255;

if (abs(terminal_background_luminance - system_background_luminance) >= 0.5) {
if (fabs(terminal_background_luminance - system_background_luminance) >= 0.5) {
// Reasonable contrast between system selection background and terminal background.
m_selection_foreground = wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHTTEXT);
m_selection_background = wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHT);
Expand Down

0 comments on commit bfc9554

Please sign in to comment.