Commit 4656a8ed authored by Lorenz Meier's avatar Lorenz Meier

Potential Linux start fix

parent d49f9841
...@@ -1279,6 +1279,7 @@ void HUD::drawCircle(float refX, float refY, float radius, float startDeg, float ...@@ -1279,6 +1279,7 @@ void HUD::drawCircle(float refX, float refY, float radius, float startDeg, float
void HUD::resizeGL(int w, int h) void HUD::resizeGL(int w, int h)
{ {
if (isVisible()) {
glViewport(0, 0, w, h); glViewport(0, 0, w, h);
glMatrixMode(GL_PROJECTION); glMatrixMode(GL_PROJECTION);
glLoadIdentity(); glLoadIdentity();
...@@ -1287,6 +1288,7 @@ void HUD::resizeGL(int w, int h) ...@@ -1287,6 +1288,7 @@ void HUD::resizeGL(int w, int h)
glPolygonMode(GL_FRONT, GL_FILL); glPolygonMode(GL_FRONT, GL_FILL);
//FIXME //FIXME
paintHUD(); paintHUD();
}
} }
void HUD::selectWaypoint(int uasId, int id) void HUD::selectWaypoint(int uasId, int id)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment