mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2026-06-05 15:35:01 -04:00
Cleanup: remove some unused params and variables, conversion warnings seen with #550.
This commit is contained in:
@@ -83,7 +83,7 @@ void GainCanvas::SetLevel() {
|
||||
|
||||
for (auto gi : gainPanels) {
|
||||
if (gi->isMeterHit(mpos)) {
|
||||
float value = gi->getMeterHitValue(mpos, *gi);
|
||||
float value = gi->getMeterHitValue(mpos);
|
||||
|
||||
gi->setValue(value);
|
||||
gi->setChanged(true);
|
||||
@@ -100,7 +100,7 @@ void GainCanvas::OnMouseMoved(wxMouseEvent& event) {
|
||||
|
||||
for (auto gi : gainPanels) {
|
||||
if (gi->isMeterHit(mpos)) {
|
||||
float value = gi->getMeterHitValue(mpos, *gi);
|
||||
float value = gi->getMeterHitValue(mpos);
|
||||
|
||||
gi->setHighlight(value);
|
||||
gi->setHighlightVisible(true);
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
class InteractiveCanvas: public wxGLCanvas {
|
||||
public:
|
||||
InteractiveCanvas(wxWindow *parent, std::vector<int> dispAttrs);
|
||||
~InteractiveCanvas();
|
||||
virtual ~InteractiveCanvas();
|
||||
|
||||
long long getFrequencyAt(float x);
|
||||
long long getFrequencyAt(float x, long long iqCenterFreq, long long iqBandwidth);
|
||||
|
||||
@@ -356,20 +356,14 @@ void PrimaryGLContext::DrawDemod(DemodulatorInstance *demod, RGBA4f color, long
|
||||
|
||||
glEnable(GL_BLEND);
|
||||
|
||||
GLFont::Align demodAlign = GLFont::GLFONT_ALIGN_CENTER;
|
||||
|
||||
//Displayed string is wstring, so use wxString to do the heavy lifting of converting getDemodulatorType()...
|
||||
wxString demodStr;
|
||||
|
||||
demodStr.assign(demod->getDemodulatorType());
|
||||
|
||||
demodAlign = GLFont::GLFONT_ALIGN_CENTER;
|
||||
|
||||
if (demodStr == "LSB") {
|
||||
demodAlign = GLFont::GLFONT_ALIGN_RIGHT;
|
||||
uxPos -= xOfs;
|
||||
} else if (demodStr == "USB") {
|
||||
demodAlign = GLFont::GLFONT_ALIGN_LEFT;
|
||||
uxPos += xOfs;
|
||||
}
|
||||
// advanced demodulators start here
|
||||
|
||||
Reference in New Issue
Block a user