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

Potential Linux start fix

parent d49f9841
...@@ -1279,14 +1279,16 @@ void HUD::drawCircle(float refX, float refY, float radius, float startDeg, float ...@@ -1279,14 +1279,16 @@ 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)
{ {
glViewport(0, 0, w, h); if (isVisible()) {
glMatrixMode(GL_PROJECTION); glViewport(0, 0, w, h);
glLoadIdentity(); glMatrixMode(GL_PROJECTION);
glOrtho(0, w, 0, h, -1, 1); glLoadIdentity();
glMatrixMode(GL_MODELVIEW); glOrtho(0, w, 0, h, -1, 1);
glPolygonMode(GL_FRONT, GL_FILL); glMatrixMode(GL_MODELVIEW);
//FIXME glPolygonMode(GL_FRONT, GL_FILL);
paintHUD(); //FIXME
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