]> git.mxchange.org Git - flightgear.git/blobdiff - src/Cockpit/panel.cxx
Various Irix compiler tweaks.
[flightgear.git] / src / Cockpit / panel.cxx
index 9a8a65862ba334f8979aab14d5543aeebca596aa..239500f9c6d8ecc9bd562304f5e48bc2c6497945 100644 (file)
@@ -26,6 +26,7 @@
 #  include <windows.h>
 #endif
 
+#include <stdio.h>     // sprintf
 #include <string.h>
 
 #include <plib/ssg.h>
@@ -253,11 +254,12 @@ FGPanel::unbind ()
  * Update the panel.
  */
 void
-FGPanel::update ()
+FGPanel::update (int dt)
 {
                                // Do nothing if the panel isn't visible.
-    if (!fgPanelVisible())
+    if ( !fgPanelVisible() ) {
         return;
+    }
 
                                // If the mouse is down, do something
     if (_mouseDown) {
@@ -519,6 +521,7 @@ FGPanelTransformation::FGPanelTransformation ()
 
 FGPanelTransformation::~FGPanelTransformation ()
 {
+  delete table;
 }