]> git.mxchange.org Git - flightgear.git/commitdiff
Fix for old PUI versions
authorThomas Geymayer <tomgey@gmail.com>
Sun, 2 Dec 2012 14:47:21 +0000 (15:47 +0100)
committerThomas Geymayer <tomgey@gmail.com>
Sun, 2 Dec 2012 14:47:21 +0000 (15:47 +0100)
src/GUI/CanvasWidget.cxx

index 8c8ea3158eab2c9bbbc2456a6be2be7f55bf5eb3..18bee716de61368a348ed6803d8f31b8183bdf2f 100644 (file)
@@ -94,6 +94,14 @@ CanvasWidget::~CanvasWidget()
                           false );
 }
 
+// Old versions of PUI are missing this defines...
+#ifndef PU_SCROLL_UP_BUTTON
+# define PU_SCROLL_UP_BUTTON     3
+#endif
+#ifndef PU_SCROLL_DOWN_BUTTON
+# define PU_SCROLL_DOWN_BUTTON   4
+#endif
+
 //------------------------------------------------------------------------------
 void CanvasWidget::doHit(int button, int updown, int x, int y)
 {