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:
parent
e985e10eec
commit
5facd37376
|
@ -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 )
|
if ( aStockCursorID <= wxCURSOR_NONE || aStockCursorID >= wxCURSOR_MAX )
|
||||||
aStockCursorID = wxCURSOR_ARROW;
|
aStockCursorID = wxCURSOR_ARROW;
|
||||||
|
|
|
@ -181,7 +181,7 @@ public:
|
||||||
* Function SetCurrentCursor
|
* Function SetCurrentCursor
|
||||||
* Set the current cursor shape for this panel
|
* Set the current cursor shape for this panel
|
||||||
*/
|
*/
|
||||||
void SetCurrentCursor( int aStockCursorID );
|
void SetCurrentCursor( wxStockCursor aStockCursorID );
|
||||||
void SetCurrentCursor( const wxCursor& aCursor );
|
void SetCurrentCursor( const wxCursor& aCursor );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue