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:
parent
102a601192
commit
d7a6494f5b
@ -245,8 +245,8 @@ static IGUIWindow* modalWindow = NULL;
|
|||||||
void Screen::showModalDialog()
|
void Screen::showModalDialog()
|
||||||
{
|
{
|
||||||
const core::dimension2d<s32>& frame_size = GUIEngine::getDriver()->getCurrentRenderTargetSize();
|
const core::dimension2d<s32>& frame_size = GUIEngine::getDriver()->getCurrentRenderTargetSize();
|
||||||
const int w = frame_size.Width*0.4;
|
const int w = (int)(frame_size.Width*0.4f);
|
||||||
const int h = frame_size.Height*0.4;
|
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),
|
core::rect< s32 > area( position2d< s32 >(frame_size.Width/2 - w/2, frame_size.Height/2 - h/2),
|
||||||
dimension2d< s32 >(w, h) );
|
dimension2d< s32 >(w, h) );
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
class Input;
|
struct Input;
|
||||||
|
|
||||||
namespace StateManager
|
namespace StateManager
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user