Am Freitag, 7. März 2008 22:29:01 schrieb Denver Gingerich:
The DirectX refresh rate override feature that this patch implements is described in main.c below.
In order for the override to take effect only on SetDisplayMode and not on RestoreDisplayMode it was necessary to move the functionality of SetDisplayMode into a helper function (DDRAW_SetDisplayMode) and let IDirectDrawImpl_SetDisplayMode and IDirectDrawImpl_RestoreDisplayMode call the helper function.
I have two concerns:
First, do you have an application that needs this, or is this just for making this aspect of ddraw compatible with Windows? There's nothing wrong with that in principle, but I am curious
I do not really like the name DDRAW_SetDisplayMode. It somewhat goes away from the convention by starting with DDRAW, but yet it does not tell more about what the function does.