Mailing Lists: Apple Mailing Lists

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

Re: Display Manager issues



on 5/19/03 1:45 PM, Bruce Director at email@hidden wrote:

> 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.

Did DMSetDisplayMode() return any error code?

Btw, how likely to switch to CGDirectDisplay API's on X?

> 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.

It almost sounded like the mode id that you pass back in step 4 is invalid.
How did you get the mode to remember?

It's a new behavior on X... the OS restores the display mode after the app
quitted.

> 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.

I doubt it's the video card mfg (btw, I work for one of them). And I don't
think I know how to figure out in runtime if the display is DFP on X... not
publicly at least... I saw kDisplayModeBuiltInFlag, a bit flag in
IOGraphicsTypes.h... is that the one for panel? Joseph? :-)

pete
_______________________________________________
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.

References: 
 >Display Manager issues (From: Bruce Director <email@hidden>)



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.