Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 366
  • Last Modified:

DirectX IDirectDraw2

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,...
0
ahk
Asked:
ahk
1 Solution
 
kw040597Commented:
It seems that you should only use the data returned by IDirectDraw2::EnumDisplayModes, have you tried that yet?
0
 
ahkAuthor Commented:
And I tried EnumDisplayMode, the problem is, it returns all available modes correct, but with refresh 0 for every mode.

0
 
ahkAuthor Commented:
Edited text of question
0
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

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

0
 
amartin030297Commented:
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

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

0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now