Skip to content

Commit

Permalink
Solution for the "rollover problem"
Browse files Browse the repository at this point in the history
Rollover problem is that the AIS target mouse rollover info is distorted when radar window is open.
  • Loading branch information
douwefokkema committed Jun 10, 2019
1 parent ec98bc2 commit bd58156
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/RadarCanvas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,7 @@ void RadarCanvas::Render(wxPaintEvent &evt) {

glPopAttrib();
glPopMatrix();
SetCurrent(*m_pi->m_opencpn_gl_context);
SwapBuffers();

#ifdef CRASH
Expand Down
2 changes: 1 addition & 1 deletion src/radar_pi.h
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,7 @@ class radar_pi : public opencpn_plugin_116, public wxEvtHandler {
bool m_predicted_position_initialised;
ExtendedPosition m_expected_position; // updated own position at time of last GPS update
ExtendedPosition m_last_fixed; // best estimate position at last measurement
wxGLContext *m_opencpn_gl_context;
private:
bool m_initialized; // True if Init() succeeded and DeInit() not called yet.
bool m_first_init; // True in first Init() call.
Expand All @@ -698,7 +699,6 @@ class radar_pi : public opencpn_plugin_116, public wxEvtHandler {
OpenGLMode m_opengl_mode;
volatile bool m_opengl_mode_changed;

wxGLContext *m_opencpn_gl_context;
bool m_opencpn_gl_context_broken;

wxTimer *m_timer;
Expand Down

0 comments on commit bd58156

Please sign in to comment.