mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
Fixed a bug for Main_DirectDraw_SetDisplayMode for DirectX 1 it did accepted to many param
Thx Kamil Hornicek tykef at atlas dot cz (irc nick : Pigglesworth) to found this bug svn path=/trunk/; revision=31050
This commit is contained in:
parent
122793a01a
commit
847f27f307
6 changed files with 22 additions and 11 deletions
|
@ -116,6 +116,13 @@ Main_DirectDraw_SetCooperativeLevel (
|
|||
|
||||
HRESULT WINAPI
|
||||
Main_DirectDraw_SetDisplayMode(
|
||||
LPDDRAWI_DIRECTDRAW_INT This,
|
||||
DWORD dwWidth,
|
||||
DWORD dwHeight,
|
||||
DWORD dwBPP);
|
||||
|
||||
HRESULT WINAPI
|
||||
Main_DirectDraw_SetDisplayMode2(
|
||||
LPDDRAWI_DIRECTDRAW_INT This,
|
||||
DWORD dwWidth,
|
||||
DWORD dwHeight,
|
||||
|
|
|
@ -109,8 +109,14 @@ Main_DirectDraw_EnumDisplayModes(LPDDRAWI_DIRECTDRAW_INT This, DWORD dwFlags,
|
|||
}
|
||||
|
||||
HRESULT WINAPI
|
||||
Main_DirectDraw_SetDisplayMode (LPDDRAWI_DIRECTDRAW_INT This, DWORD dwWidth, DWORD dwHeight,
|
||||
DWORD dwBPP, DWORD dwRefreshRate, DWORD dwFlags)
|
||||
Main_DirectDraw_SetDisplayMode (LPDDRAWI_DIRECTDRAW_INT This, DWORD dwWidth, DWORD dwHeight, DWORD dwBPP)
|
||||
{
|
||||
return Main_DirectDraw_SetDisplayMode2 (This, dwWidth, dwHeight, dwBPP, 0, 0 );
|
||||
}
|
||||
|
||||
HRESULT WINAPI
|
||||
Main_DirectDraw_SetDisplayMode2 (LPDDRAWI_DIRECTDRAW_INT This, DWORD dwWidth, DWORD dwHeight,
|
||||
DWORD dwBPP, DWORD dwRefreshRate, DWORD dwFlags)
|
||||
{
|
||||
HRESULT ret = DD_OK;
|
||||
DX_WINDBG_trace();
|
||||
|
|
|
@ -130,7 +130,7 @@ Main_DirectDraw_SetCooperativeLevel (
|
|||
DWORD cooplevel);
|
||||
|
||||
HRESULT WINAPI
|
||||
Main_DirectDraw_SetDisplayMode(
|
||||
Main_DirectDraw_SetDisplayMode2(
|
||||
LPDIRECTDRAW2 iface,
|
||||
DWORD dwWidth,
|
||||
DWORD dwHeight,
|
||||
|
@ -176,7 +176,7 @@ IDirectDraw2Vtbl DirectDraw2_Vtable =
|
|||
Main_DirectDraw_Initialize,
|
||||
Main_DirectDraw_RestoreDisplayMode,
|
||||
Main_DirectDraw_SetCooperativeLevel,
|
||||
Main_DirectDraw_SetDisplayMode,
|
||||
Main_DirectDraw_SetDisplayMode2,
|
||||
Main_DirectDraw_WaitForVerticalBlank,
|
||||
Main_DirectDraw_GetAvailableVidMem
|
||||
};
|
||||
|
|
|
@ -130,7 +130,7 @@ Main_DirectDraw_SetCooperativeLevel (
|
|||
DWORD cooplevel);
|
||||
|
||||
HRESULT WINAPI
|
||||
Main_DirectDraw_SetDisplayMode(
|
||||
Main_DirectDraw_SetDisplayMode2(
|
||||
LPDIRECTDRAW4 iface,
|
||||
DWORD dwWidth,
|
||||
DWORD dwHeight,
|
||||
|
@ -195,7 +195,7 @@ IDirectDraw4Vtbl DirectDraw4_Vtable =
|
|||
Main_DirectDraw_Initialize,
|
||||
Main_DirectDraw_RestoreDisplayMode,
|
||||
Main_DirectDraw_SetCooperativeLevel,
|
||||
Main_DirectDraw_SetDisplayMode,
|
||||
Main_DirectDraw_SetDisplayMode2,
|
||||
Main_DirectDraw_WaitForVerticalBlank,
|
||||
Main_DirectDraw_GetAvailableVidMem4,
|
||||
Main_DirectDraw_GetSurfaceFromDC,
|
||||
|
|
|
@ -134,7 +134,7 @@ Main_DirectDraw_SetCooperativeLevel (
|
|||
DWORD cooplevel);
|
||||
|
||||
HRESULT WINAPI
|
||||
Main_DirectDraw_SetDisplayMode(
|
||||
Main_DirectDraw_SetDisplayMode2(
|
||||
LPDIRECTDRAW7 iface,
|
||||
DWORD dwWidth,
|
||||
DWORD dwHeight,
|
||||
|
@ -210,7 +210,7 @@ IDirectDraw7Vtbl DirectDraw7_Vtable =
|
|||
Main_DirectDraw_Initialize, /* (Initialize done) */
|
||||
Main_DirectDraw_RestoreDisplayMode, /* (RestoreDisplayMode testing / devloping) */
|
||||
Main_DirectDraw_SetCooperativeLevel, /* (SetCooperativeLevel testing / devloping) */
|
||||
Main_DirectDraw_SetDisplayMode, /* (SetDisplayMode testing / devloping) */
|
||||
Main_DirectDraw_SetDisplayMode2, /* (SetDisplayMode testing / devloping) */
|
||||
Main_DirectDraw_WaitForVerticalBlank,
|
||||
Main_DirectDraw_GetAvailableVidMem4, /* (GetAvailableVidMem4 done) */
|
||||
Main_DirectDraw_GetSurfaceFromDC,
|
||||
|
|
|
@ -134,9 +134,7 @@ Main_DirectDraw_SetDisplayMode(
|
|||
LPDIRECTDRAW iface,
|
||||
DWORD dwWidth,
|
||||
DWORD dwHeight,
|
||||
DWORD dwBPP,
|
||||
DWORD dwRefreshRate,
|
||||
DWORD dwFlags);
|
||||
DWORD dwBPP);
|
||||
|
||||
HRESULT WINAPI
|
||||
Main_DirectDraw_WaitForVerticalBlank(
|
||||
|
|
Loading…
Reference in a new issue