Missing const fixed.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@765 dfc29bdd-3216-0410-991c-e03cc46cb475
master
hybrid 2007-07-07 18:34:55 +00:00
parent 9f78646192
commit 1406fa59b8
3 changed files with 5 additions and 4 deletions

View File

@ -479,7 +479,7 @@ namespace gui
\param pos: Position of the rectangle.
\param clip: Pointer to rectangle against which the rectangle will be clipped.
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;
//! get the type of this skin

View File

@ -771,8 +771,9 @@ EGUI_SKIN_TYPE CGUISkin::getType() const
}
//! draws a 2d rectangle.
void CGUISkin::draw2DRectangle(IGUIElement* element, video::SColor &color, const core::rect<s32>& pos,
const core::rect<s32>* clip)
void CGUISkin::draw2DRectangle(IGUIElement* element,
const video::SColor &color, const core::rect<s32>& pos,
const core::rect<s32>* clip)
{
Driver->draw2DRectangle(color, pos, clip);
}

View File

@ -199,7 +199,7 @@ namespace gui
\param pos: Position of the rectangle.
\param clip: Pointer to rectangle against which the rectangle will be clipped.
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);