projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2eb98dd
)
Maybe de-flicker the audio display a bit on windows.
author
Carl Hetherington
<cth@carlh.net>
Mon, 25 Feb 2013 21:13:49 +0000
(21:13 +0000)
committer
Carl Hetherington
<cth@carlh.net>
Mon, 25 Feb 2013 21:13:49 +0000
(21:13 +0000)
src/wx/audio_plot.cc
patch
|
blob
|
history
diff --git
a/src/wx/audio_plot.cc
b/src/wx/audio_plot.cc
index cccdaed3402611a09f10a8020f9044ab1c3df203..8e7b3f9f5116da3b305f47bcaaf290839c6e739a 100644
(file)
--- a/
src/wx/audio_plot.cc
+++ b/
src/wx/audio_plot.cc
@@
-39,6
+39,11
@@
AudioPlot::AudioPlot (wxWindow* parent)
: wxPanel (parent)
, _gain (0)
{
+ SetDoubleBuffered (true);
+#if wxMAJOR_VERSION == 2 && wxMINOR_VERSION >= 9
+ SetBackgroundStyle (wxBG_STYLE_PAINT);
+#endif
+
for (int i = 0; i < MAX_AUDIO_CHANNELS; ++i) {
_channel_visible[i] = false;
}