theme refresh fix, set waterfall panel bg
This commit is contained in:
parent
c60a5aa019
commit
c4cde423f9
|
@ -456,6 +456,11 @@ void AppFrame::OnMenu(wxCommandEvent& event) {
|
||||||
ThemeMgr::mgr.setTheme(COLOR_THEME_RADAR);
|
ThemeMgr::mgr.setTheme(COLOR_THEME_RADAR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (event.GetId() >= wxID_THEME_DEFAULT && event.GetId() <= wxID_THEME_RADAR) {
|
||||||
|
demodTuner->Refresh();
|
||||||
|
demodModeSelector->Refresh();
|
||||||
|
}
|
||||||
|
|
||||||
switch (event.GetId()) {
|
switch (event.GetId()) {
|
||||||
case wxID_BANDWIDTH_250K:
|
case wxID_BANDWIDTH_250K:
|
||||||
wxGetApp().setSampleRate(250000);
|
wxGetApp().setSampleRate(250000);
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#include "WaterfallPanel.h"
|
#include "WaterfallPanel.h"
|
||||||
|
|
||||||
WaterfallPanel::WaterfallPanel() : GLPanel(), fft_size(0), waterfall_lines(0), waterfall_slice(NULL), activeTheme(NULL) {
|
WaterfallPanel::WaterfallPanel() : GLPanel(), fft_size(0), waterfall_lines(0), waterfall_slice(NULL), activeTheme(NULL) {
|
||||||
|
setFillColor(RGB3f(0,0,0));
|
||||||
for (int i = 0; i < 2; i++) {
|
for (int i = 0; i < 2; i++) {
|
||||||
waterfall[i] = 0;
|
waterfall[i] = 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,13 +10,12 @@ public:
|
||||||
void setPoints(std::vector<float> &points);
|
void setPoints(std::vector<float> &points);
|
||||||
void step();
|
void step();
|
||||||
|
|
||||||
std::vector<float> points;
|
|
||||||
bool needsUpdate;
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void drawPanelContents();
|
void drawPanelContents();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
std::vector<float> points;
|
||||||
|
|
||||||
GLuint waterfall[2];
|
GLuint waterfall[2];
|
||||||
int waterfall_ofs[2];
|
int waterfall_ofs[2];
|
||||||
int fft_size;
|
int fft_size;
|
||||||
|
|
Loading…
Reference in New Issue