The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

383740 (1) [Avatar] Offline

Useful book, I'm enjoying it, thank you!

In a couple of places in the code, when you're in directHmdMode, or not in extendedMode, you call on getSecondaryScreenPosition().

getSecondaryScreenPosition() Finds the largest monitor that isn't the primary display, and returns it as the secondary monitor, hopfully the Rift. The function has the Rift's dimensions, but doesn't use them to find the monitor.

I'm not following the logic - why assume that the rift is the largest other monitor? Why not find the (say first) monitor that's Rift-sized? Or have I misunderstood what some of the values represent there?

Thank you.
-- Peter.

EDIT: I asked my question while I was still in Chapter 3, and I've now read the comments in Chapter 4, section 4.1.4, page 129. Relevant bit: "takes as input the desired size of the window and attempts to find a monitor that's big enough to place it on". That doesn't answer my question, but I wanted to reference the most relevant section.