projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8431f12
)
Better attempt at clearing background of check boxes.
author
Carl Hetherington
<cth@carlh.net>
Mon, 6 May 2013 15:08:15 +0000
(16:08 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Mon, 6 May 2013 15:08:15 +0000
(16:08 +0100)
src/wx/audio_mapping_view.cc
patch
|
blob
|
history
diff --git
a/src/wx/audio_mapping_view.cc
b/src/wx/audio_mapping_view.cc
index 878db3af2a677d31fb19f5512c95781082b8d6bb..2625d09621ef4faa7d874ea1f0c64e81c998c763 100644
(file)
--- a/
src/wx/audio_mapping_view.cc
+++ b/
src/wx/audio_mapping_view.cc
@@
-59,7
+59,12
@@
public:
void Draw (wxGrid& grid, wxGridCellAttr &, wxDC& dc, const wxRect& rect, int row, int col, bool)
{
void Draw (wxGrid& grid, wxGridCellAttr &, wxDC& dc, const wxRect& rect, int row, int col, bool)
{
- dc.Clear ();
+#if wxMAJOR_VERSION == 2 && wxMINOR_VERSION >= 9
+ dc.SetPen (*wxThePenList->FindOrCreatePen (wxColour (255, 255, 255), 0, wxPENSTYLE_SOLID));
+#else
+ dc.SetPen (*wxThePenList->FindOrCreatePen (wxColour (255, 255, 255), 0, SOLID));
+#endif
+ dc.DrawRectangle (rect);
wxRendererNative::Get().DrawCheckBox (
&grid,
wxRendererNative::Get().DrawCheckBox (
&grid,