mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 14:44:36 +00:00
revised monitor existsence check
This commit is contained in:
parent
2866b3afd6
commit
1205632f92
1 changed files with 8 additions and 1 deletions
|
|
@ -28,9 +28,16 @@
|
|||
TEST(WinMgr, BasicAPI)
|
||||
{
|
||||
PlatformWindowManager *pwm = CreatePlatformWindowManager();
|
||||
|
||||
ASSERT_TRUE(pwm)
|
||||
<< "CreatePlatformWindowManager creation Failed!";
|
||||
if (!pwm)
|
||||
return;
|
||||
|
||||
S32 monitorCount = PlatformWindowManager::get()->getMonitorCount();
|
||||
EXPECT_GT(monitorCount, 0)
|
||||
<< "no monitor to test against!";
|
||||
if (monitorCount == 0)
|
||||
return;
|
||||
|
||||
// Check out the primary desktop area...
|
||||
RectI primary = pwm->getPrimaryDesktopArea();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue