Commit 9bf2410e authored by hybrid's avatar hybrid

Compile guard for function which is only available for WindowsXP and later.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3580 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 7543da63
...@@ -77,11 +77,13 @@ CIrrDeviceConsole::CIrrDeviceConsole(const SIrrlichtCreationParameters& params) ...@@ -77,11 +77,13 @@ CIrrDeviceConsole::CIrrDeviceConsole(const SIrrlichtCreationParameters& params)
if (CreationParams.Fullscreen) if (CreationParams.Fullscreen)
{ {
#if _WIN32_WINNT >= 0x0501
if (SetConsoleDisplayMode(WindowsSTDOut, CONSOLE_FULLSCREEN_MODE, Dimensions)) if (SetConsoleDisplayMode(WindowsSTDOut, CONSOLE_FULLSCREEN_MODE, Dimensions))
{ {
CreationParams.WindowSize.Width = Dimensions->X; CreationParams.WindowSize.Width = Dimensions->X;
CreationParams.WindowSize.Width = Dimensions->Y; CreationParams.WindowSize.Width = Dimensions->Y;
} }
#endif
} }
else else
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment