summaryrefslogtreecommitdiff
path: root/wx+/graph.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <shieldwed@outlook.com>2018-05-09 00:07:03 +0200
committerDaniel Wilhelm <shieldwed@outlook.com>2018-05-09 00:07:03 +0200
commit1aab211abb68b40cefb5024d0be373589c9c8f99 (patch)
tree2da4ead196df622081ac45b29678e92ed30476a3 /wx+/graph.cpp
parent9.5 (diff)
downloadFreeFileSync-1aab211abb68b40cefb5024d0be373589c9c8f99.tar.gz
FreeFileSync-1aab211abb68b40cefb5024d0be373589c9c8f99.tar.bz2
FreeFileSync-1aab211abb68b40cefb5024d0be373589c9c8f99.zip
9.6
Diffstat (limited to 'wx+/graph.cpp')
-rwxr-xr-xwx+/graph.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/wx+/graph.cpp b/wx+/graph.cpp
index 132361b3..b81896b4 100755
--- a/wx+/graph.cpp
+++ b/wx+/graph.cpp
@@ -1,6 +1,6 @@
// *****************************************************************************
// * This file is part of the FreeFileSync project. It is distributed under *
-// * GNU General Public License: http://www.gnu.org/licenses/gpl-3.0 *
+// * GNU General Public License: https://www.gnu.org/licenses/gpl-3.0 *
// * Copyright (C) Zenju (zenju AT freefilesync DOT org) - All Rights Reserved *
// *****************************************************************************
@@ -227,12 +227,12 @@ void drawCornerText(wxDC& dc, const wxRect& graphArea, const wxString& txt, Grap
break;
}
- {
- //add text shadow to improve readability:
- wxDCTextColourChanger dummy(dc, backgroundColor);
- dc.DrawText(txt, drawPos + wxPoint(borderX + 1, borderY + 1));
- }
- wxDCTextColourChanger dummy(dc, wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT));
+ {
+ //add text shadow to improve readability:
+ wxDCTextColourChanger dummy(dc, backgroundColor);
+ dc.DrawText(txt, drawPos + wxPoint(borderX + 1, borderY + 1));
+ }
+ wxDCTextColourChanger dummy(dc, wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT));
dc.DrawText(txt, drawPos + wxPoint(borderX, borderY));
}
@@ -546,9 +546,9 @@ void Graph2D::render(wxDC& dc) const
const wxRect clientRect = GetClientRect(); //DON'T use wxDC::GetSize()! DC may be larger than visible area!
- clearArea(dc, clientRect, GetBackgroundColour() /*user-configurable!*/);
- //wxPanel::GetClassDefaultAttributes().colBg :
- //wxSystemSettings::GetColour(wxSYS_COLOUR_BTNFACE);
+ clearArea(dc, clientRect, GetBackgroundColour() /*user-configurable!*/);
+ //wxPanel::GetClassDefaultAttributes().colBg :
+ //wxSystemSettings::GetColour(wxSYS_COLOUR_BTNFACE);
/*
-----------------------
@@ -731,10 +731,10 @@ void Graph2D::render(wxDC& dc) const
//save current selection as "double" coordinates
activeSel_->refSelection().from = CurvePoint(cvrtX.screenToReal(screenFromX),
- cvrtY.screenToReal(screenFromY));
+ cvrtY.screenToReal(screenFromY));
activeSel_->refSelection().to = CurvePoint(cvrtX.screenToReal(screenToX),
- cvrtY.screenToReal(screenToY));
+ cvrtY.screenToReal(screenToY));
}
//#################### begin drawing ####################
bgstack15