mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-08-04 06:32:25 -04:00
OSX 1/2 refresh frame-limiting hack
This commit is contained in:
parent
e4c942c714
commit
adf8ba5251
@ -60,6 +60,9 @@ float MeterCanvas::getInputValue() {
|
|||||||
|
|
||||||
void MeterCanvas::OnPaint(wxPaintEvent& WXUNUSED(event)) {
|
void MeterCanvas::OnPaint(wxPaintEvent& WXUNUSED(event)) {
|
||||||
wxPaintDC dc(this);
|
wxPaintDC dc(this);
|
||||||
|
#ifdef __APPLE__ // force half-rate?
|
||||||
|
glFinish();
|
||||||
|
#endif
|
||||||
const wxSize ClientSize = GetClientSize();
|
const wxSize ClientSize = GetClientSize();
|
||||||
|
|
||||||
glContext->SetCurrent(*this);
|
glContext->SetCurrent(*this);
|
||||||
|
@ -47,7 +47,10 @@ int ModeSelectorCanvas::getHoveredSelection() {
|
|||||||
|
|
||||||
void ModeSelectorCanvas::OnPaint(wxPaintEvent& WXUNUSED(event)) {
|
void ModeSelectorCanvas::OnPaint(wxPaintEvent& WXUNUSED(event)) {
|
||||||
wxPaintDC dc(this);
|
wxPaintDC dc(this);
|
||||||
const wxSize ClientSize = GetClientSize();
|
#ifdef __APPLE__ // force half-rate?
|
||||||
|
glFinish();
|
||||||
|
#endif
|
||||||
|
const wxSize ClientSize = GetClientSize();
|
||||||
|
|
||||||
glContext->SetCurrent(*this);
|
glContext->SetCurrent(*this);
|
||||||
initGLExtensions();
|
initGLExtensions();
|
||||||
|
@ -45,6 +45,9 @@ void ScopeCanvas::setDeviceName(std::string device_name) {
|
|||||||
|
|
||||||
void ScopeCanvas::OnPaint(wxPaintEvent& WXUNUSED(event)) {
|
void ScopeCanvas::OnPaint(wxPaintEvent& WXUNUSED(event)) {
|
||||||
wxPaintDC dc(this);
|
wxPaintDC dc(this);
|
||||||
|
#ifdef __APPLE__ // force half-rate?
|
||||||
|
glFinish();
|
||||||
|
#endif
|
||||||
const wxSize ClientSize = GetClientSize();
|
const wxSize ClientSize = GetClientSize();
|
||||||
|
|
||||||
if (!wxGetApp().getAudioVisualQueue()->empty()) {
|
if (!wxGetApp().getAudioVisualQueue()->empty()) {
|
||||||
|
@ -67,6 +67,9 @@ SpectrumCanvas::~SpectrumCanvas() {
|
|||||||
|
|
||||||
void SpectrumCanvas::OnPaint(wxPaintEvent& WXUNUSED(event)) {
|
void SpectrumCanvas::OnPaint(wxPaintEvent& WXUNUSED(event)) {
|
||||||
wxPaintDC dc(this);
|
wxPaintDC dc(this);
|
||||||
|
#ifdef __APPLE__ // force half-rate?
|
||||||
|
glFinish();
|
||||||
|
#endif
|
||||||
const wxSize ClientSize = GetClientSize();
|
const wxSize ClientSize = GetClientSize();
|
||||||
|
|
||||||
glContext->SetCurrent(*this);
|
glContext->SetCurrent(*this);
|
||||||
|
@ -36,6 +36,9 @@ TuningCanvas::~TuningCanvas() {
|
|||||||
|
|
||||||
void TuningCanvas::OnPaint(wxPaintEvent& WXUNUSED(event)) {
|
void TuningCanvas::OnPaint(wxPaintEvent& WXUNUSED(event)) {
|
||||||
wxPaintDC dc(this);
|
wxPaintDC dc(this);
|
||||||
|
#ifdef __APPLE__ // force half-rate?
|
||||||
|
glFinish();
|
||||||
|
#endif
|
||||||
const wxSize ClientSize = GetClientSize();
|
const wxSize ClientSize = GetClientSize();
|
||||||
|
|
||||||
glContext->SetCurrent(*this);
|
glContext->SetCurrent(*this);
|
||||||
|
@ -98,6 +98,10 @@ void WaterfallCanvas::attachSpectrumCanvas(SpectrumCanvas *canvas_in) {
|
|||||||
|
|
||||||
void WaterfallCanvas::OnPaint(wxPaintEvent& WXUNUSED(event)) {
|
void WaterfallCanvas::OnPaint(wxPaintEvent& WXUNUSED(event)) {
|
||||||
wxPaintDC dc(this);
|
wxPaintDC dc(this);
|
||||||
|
#ifdef __APPLE__ // force half-rate?
|
||||||
|
glFinish();
|
||||||
|
#endif
|
||||||
|
|
||||||
const wxSize ClientSize = GetClientSize();
|
const wxSize ClientSize = GetClientSize();
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user