revised monitor existsence check

This commit is contained in:
AzaezelX 2023-07-21 09:27:52 -05:00
parent 2866b3afd6
commit 1205632f92

View file

@ -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();