Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Display Manager issues



Our app allows the user to view data in stereo using certain hardware, e.g. CrystalEyes from StereoGraphics. The hardware requires that the monitor be at a 60 Hz refresh rate. The code does the following when the user enters stereo mode:
1) Save the current display mode.
2) Search for a display mode at the current resolution and depth with a 60Hz refresh rate.
3) Switch to the 60 Hz display mode.
4) When the user exits stereo mode, switch back to the saved display mode.

This works in 9, but step 4 fails in X, i.e. the monitor is left at a 60 Hz refresh rate after the call to DMSetDisplayMode. But the DMSetDisplayMode call in step 3 works. When the app exits, the display mode is returned to what it was in step 1. Any idea what's going on? This is with CarbonLib 1.6. All of the DM calls return noErr.

Since the stereo hardware only works on a CRT monitor, I added a check to determine if the monitor is an LCD type display. This works in 9 and fails in X because the variable csTimingData in the structure VDTimingInfoRec has the correct value in 9 (timingApple_FixedRateLCD), but a 0 in X. I also noticed that other variables in the VD structures, including refresh rate for an LCD display, have different values depending on whether you're running on 9 or X. Is this a problem I should bring to the video card mfg, or a Carbon issue? I am using the latest video drivers from the mfg.

Thanks,

Bruce
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.