From 314c1161ae1bc018316adb0512867b77c6331e81 Mon Sep 17 00:00:00 2001 From: scrawl Date: Mon, 18 May 2015 21:05:17 +0200 Subject: [PATCH] Minor addition to reading display --- components/sdlutil/sdlcursormanager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/components/sdlutil/sdlcursormanager.cpp b/components/sdlutil/sdlcursormanager.cpp index 70f389136..2befc7bd0 100644 --- a/components/sdlutil/sdlcursormanager.cpp +++ b/components/sdlutil/sdlcursormanager.cpp @@ -35,6 +35,7 @@ namespace osg::GraphicsContext::ScreenIdentifier si; si.readDISPLAY(); + if (si.displayNum<0) si.displayNum = 0; traits->displayNum = si.displayNum; traits->screenNum = si.screenNum; traits->hostName = si.hostName;