Skip to content

Commit

Permalink
Changed label drawing callback to before phase, trying to fix VR labels
Browse files Browse the repository at this point in the history
  • Loading branch information
TwinFan committed Aug 27, 2020
1 parent fdab4fd commit a7af3c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/2D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ void TwoDActivate ()
// TODO: This is a deprecated call!
XPLMRegisterDrawCallback(CPLabelDrawing,
xplm_Phase_Window,
0, // after
1, // after
nullptr);
}

Expand All @@ -217,7 +217,7 @@ void TwoDDeactivate ()
{
// Unregister the drawing callback
// TODO: This is a deprecated call!
XPLMUnregisterDrawCallback(CPLabelDrawing, xplm_Phase_Window, 0, nullptr);
XPLMUnregisterDrawCallback(CPLabelDrawing, xplm_Phase_Window, 1, nullptr);
}


Expand Down

1 comment on commit a7af3c5

@TwinFan
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #17

Please sign in to comment.