From 8d8e9c39132bd8822c9506f5f792dcfe36f54a19 Mon Sep 17 00:00:00 2001 From: Thomas Geymayer Date: Sun, 2 Dec 2012 15:47:21 +0100 Subject: [PATCH] Fix for old PUI versions --- src/GUI/CanvasWidget.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/GUI/CanvasWidget.cxx b/src/GUI/CanvasWidget.cxx index 8c8ea3158..18bee716d 100644 --- a/src/GUI/CanvasWidget.cxx +++ b/src/GUI/CanvasWidget.cxx @@ -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) {