More code cleanup for irr 1.6.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4095 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2009-10-07 04:58:22 +00:00
parent 68981649b3
commit 84df9cf1dc

View File

@@ -43,8 +43,14 @@ ModalDialog::ModalDialog(const float percentWidth, const float percentHeight)
assert(w > 0);
assert(h > 0);
#if IRRLICHT_VERSION_MAJOR > 1 || IRRLICHT_VERSION_MINOR >= 6
assert((unsigned int)w <= frame_size.Width);
assert((unsigned int)h <= frame_size.Height);
#else
assert(w <= frame_size.Width);
assert(h <= frame_size.Height);
#endif
m_area = core::rect< s32 >( position2d< s32 >(frame_size.Width/2 - w/2, frame_size.Height/2 - h/2),
dimension2d< s32 >(w, h) );