We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

DirectX IDirectDraw2

ahk
ahk asked
on
Medium Priority
399 Views
Last Modified: 2013-12-04
IDirect2->SetDisplayMode has a parameter for the refresh rate. If I call this routine with anything besides 0 (which means don't use this parameter) I get the return value UNSUPPORTED. Is it possible, that not all drivers support this feature, and if so, which one does support it?
I tried EnumDisplayMode, it iterates correctly over the available modes, but the refresh rate returned was always 0.

Thanx,...
Comment
Watch Question

Commented:
It seems that you should only use the data returned by IDirectDraw2::EnumDisplayModes, have you tried that yet?
ahk

Author

Commented:
And I tried EnumDisplayMode, the problem is, it returns all available modes correct, but with refresh 0 for every mode.

ahk

Author

Commented:
Edited text of question
The IDirectDraw2::SetCooperativeLevel method must be used to set exclusive-level access before the mode can be changed.
Do you use dwFlags=DDEDM_REFRESHRATES in call to
EnumDisplayModes() ?

DirectDraw-2 does NOT officially support monitor-rate change in the mode settings... While the API supports the parameters to be passed, all DX-2 drivers ignore or return failure when values other than 0 are used.   DirectX-5 Beta-1 just shipped last week (write betareq@microsoft.com, subject: Directx to join).  
   Sorry for the bad news about dx-2...
             -- Aaron

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
ahk

Author

Commented:
Is there really no driver, which supports this mode?
The only thing, which is new with IDirect2 is the change of
refresh and if it doesn't work at all, what is it really for...

Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.