Fixed VS compilation warnings/errors.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3570 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2009-06-02 11:56:48 +00:00
parent 102a601192
commit d7a6494f5b
2 changed files with 3 additions and 3 deletions

View File

@ -245,8 +245,8 @@ static IGUIWindow* modalWindow = NULL;
void Screen::showModalDialog()
{
const core::dimension2d<s32>& frame_size = GUIEngine::getDriver()->getCurrentRenderTargetSize();
const int w = frame_size.Width*0.4;
const int h = frame_size.Height*0.4;
const int w = (int)(frame_size.Width*0.4f);
const int h = (int)(frame_size.Height*0.4f);
core::rect< s32 > area( position2d< s32 >(frame_size.Width/2 - w/2, frame_size.Height/2 - h/2),
dimension2d< s32 >(w, h) );

View File

@ -3,7 +3,7 @@
#include <string>
class Input;
struct Input;
namespace StateManager
{