From d7a6494f5b2767b8a93141f01f72d099974ee1e2 Mon Sep 17 00:00:00 2001 From: hikerstk Date: Tue, 2 Jun 2009 11:56:48 +0000 Subject: [PATCH] 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 --- src/gui/screen.cpp | 4 ++-- src/gui/state_manager.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/screen.cpp b/src/gui/screen.cpp index 415693b66..6dbd09201 100644 --- a/src/gui/screen.cpp +++ b/src/gui/screen.cpp @@ -245,8 +245,8 @@ static IGUIWindow* modalWindow = NULL; void Screen::showModalDialog() { const core::dimension2d& 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) ); diff --git a/src/gui/state_manager.hpp b/src/gui/state_manager.hpp index bc2ccb1bd..7946c08f7 100644 --- a/src/gui/state_manager.hpp +++ b/src/gui/state_manager.hpp @@ -3,7 +3,7 @@ #include -class Input; +struct Input; namespace StateManager {