Commit 1406fa59 authored by hybrid's avatar hybrid

Missing const fixed.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@765 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 9f786461
...@@ -479,7 +479,7 @@ namespace gui ...@@ -479,7 +479,7 @@ namespace gui
\param pos: Position of the rectangle. \param pos: Position of the rectangle.
\param clip: Pointer to rectangle against which the rectangle will be clipped. \param clip: Pointer to rectangle against which the rectangle will be clipped.
If the pointer is null, no clipping will be performed. */ If the pointer is null, no clipping will be performed. */
virtual void draw2DRectangle(IGUIElement* element, video::SColor &color, virtual void draw2DRectangle(IGUIElement* element, const video::SColor &color,
const core::rect<s32>& pos, const core::rect<s32>* clip = 0) = 0; const core::rect<s32>& pos, const core::rect<s32>* clip = 0) = 0;
//! get the type of this skin //! get the type of this skin
......
...@@ -771,8 +771,9 @@ EGUI_SKIN_TYPE CGUISkin::getType() const ...@@ -771,8 +771,9 @@ EGUI_SKIN_TYPE CGUISkin::getType() const
} }
//! draws a 2d rectangle. //! draws a 2d rectangle.
void CGUISkin::draw2DRectangle(IGUIElement* element, video::SColor &color, const core::rect<s32>& pos, void CGUISkin::draw2DRectangle(IGUIElement* element,
const core::rect<s32>* clip) const video::SColor &color, const core::rect<s32>& pos,
const core::rect<s32>* clip)
{ {
Driver->draw2DRectangle(color, pos, clip); Driver->draw2DRectangle(color, pos, clip);
} }
......
...@@ -199,7 +199,7 @@ namespace gui ...@@ -199,7 +199,7 @@ namespace gui
\param pos: Position of the rectangle. \param pos: Position of the rectangle.
\param clip: Pointer to rectangle against which the rectangle will be clipped. \param clip: Pointer to rectangle against which the rectangle will be clipped.
If the pointer is null, no clipping will be performed. */ If the pointer is null, no clipping will be performed. */
virtual void draw2DRectangle(IGUIElement* element, video::SColor &color, virtual void draw2DRectangle(IGUIElement* element, const video::SColor &color,
const core::rect<s32>& pos, const core::rect<s32>* clip = 0); const core::rect<s32>& pos, const core::rect<s32>* clip = 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment