GAL: Use cursor enum

Not all platforms define the WXWIN_COMPATIBILITY_2_8 so an int isn't
properly cast.
This commit is contained in:
Seth Hillbrand 2019-08-06 18:33:42 -07:00
parent e985e10eec
commit 5facd37376
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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 );
/**