Skip to content

Commit

Permalink
OSX: add missing _IRR_OVERRIDE_
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksim authored and Maksim committed Nov 26, 2020
1 parent e4079d2 commit d5302fc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions source/Irrlicht/CIrrDeviceOSX.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,39 +136,39 @@ namespace irr
}

//! Changes the visible state of the mouse cursor.
virtual void setVisible(bool visible)
virtual void setVisible(bool visible) _IRR_OVERRIDE_
{
IsVisible = visible;
Device->setCursorVisible(visible);
}

//! Returns if the cursor is currently visible.
virtual bool isVisible() const
virtual bool isVisible() const _IRR_OVERRIDE_
{
return IsVisible;
}

//! Sets the new position of the cursor.
virtual void setPosition(const core::position2d<f32> &pos)
virtual void setPosition(const core::position2d<f32> &pos) _IRR_OVERRIDE_
{
setPosition(pos.X, pos.Y);
}

//! Sets the new position of the cursor.
virtual void setPosition(f32 x, f32 y)
virtual void setPosition(f32 x, f32 y) _IRR_OVERRIDE_
{
setPosition((s32)(x*WindowSize.Width), (s32)(y*WindowSize.Height));
}

//! Sets the new position of the cursor.
virtual void setPosition(const core::position2d<s32> &pos)
virtual void setPosition(const core::position2d<s32> &pos) _IRR_OVERRIDE_
{
if (CursorPos.X != pos.X || CursorPos.Y != pos.Y)
setPosition(pos.X, pos.Y);
}

//! Sets the new position of the cursor.
virtual void setPosition(s32 x, s32 y)
virtual void setPosition(s32 x, s32 y) _IRR_OVERRIDE_
{
if (UseReferenceRect)
{
Expand Down Expand Up @@ -200,7 +200,7 @@ namespace irr
}

//! Sets an absolute reference rect for calculating the cursor position.
virtual void setReferenceRect(core::rect<s32>* rect=0)
virtual void setReferenceRect(core::rect<s32>* rect=0) _IRR_OVERRIDE_
{
if (rect)
{
Expand Down

0 comments on commit d5302fc

Please sign in to comment.