From 5facd37376e3b044ce6e96e1ba15297ff50b34ca Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Tue, 6 Aug 2019 18:33:42 -0700 Subject: [PATCH] GAL: Use cursor enum Not all platforms define the WXWIN_COMPATIBILITY_2_8 so an int isn't properly cast. --- common/draw_panel_gal.cpp | 2 +- include/class_draw_panel_gal.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/draw_panel_gal.cpp b/common/draw_panel_gal.cpp index 1e183bec9b..20d0a8e41a 100644 --- a/common/draw_panel_gal.cpp +++ b/common/draw_panel_gal.cpp @@ -498,7 +498,7 @@ void EDA_DRAW_PANEL_GAL::onShowTimer( wxTimerEvent& aEvent ) } -void EDA_DRAW_PANEL_GAL::SetCurrentCursor( int aStockCursorID ) +void EDA_DRAW_PANEL_GAL::SetCurrentCursor( wxStockCursor aStockCursorID ) { if ( aStockCursorID <= wxCURSOR_NONE || aStockCursorID >= wxCURSOR_MAX ) aStockCursorID = wxCURSOR_ARROW; diff --git a/include/class_draw_panel_gal.h b/include/class_draw_panel_gal.h index 42d6f3ee2c..8d70b82516 100644 --- a/include/class_draw_panel_gal.h +++ b/include/class_draw_panel_gal.h @@ -181,7 +181,7 @@ public: * Function SetCurrentCursor * Set the current cursor shape for this panel */ - void SetCurrentCursor( int aStockCursorID ); + void SetCurrentCursor( wxStockCursor aStockCursorID ); void SetCurrentCursor( const wxCursor& aCursor ); /**