mirror of
https://github.com/reactos/reactos.git
synced 2024-07-21 11:48:04 +00:00
Fix compiler warning.
svn path=/trunk/; revision=26794
This commit is contained in:
parent
ada941267c
commit
f6773f20a3
|
@ -157,8 +157,7 @@ Main_DirectDraw_SetDisplayMode (LPDIRECTDRAW7 iface, DWORD dwWidth, DWORD dwHeig
|
||||||
DevMode.dmBitsPerPel = dwBPP;
|
DevMode.dmBitsPerPel = dwBPP;
|
||||||
DevMode.dmDisplayFrequency = dwRefreshRate;
|
DevMode.dmDisplayFrequency = dwRefreshRate;
|
||||||
|
|
||||||
LONG retval = ChangeDisplaySettings(&DevMode, CDS_FULLSCREEN /* | CDS_SET_PRIMARY ? */);
|
LONG retval = ChangeDisplaySettings(&DevMode, CDS_FULLSCREEN); /* FIXME: Are we supposed to set CDS_SET_PRIMARY as well ? */
|
||||||
DbgPrint("%d\n", retval);
|
|
||||||
|
|
||||||
if(retval == DISP_CHANGE_BADMODE)
|
if(retval == DISP_CHANGE_BADMODE)
|
||||||
{
|
{
|
||||||
|
@ -172,7 +171,7 @@ Main_DirectDraw_SetDisplayMode (LPDIRECTDRAW7 iface, DWORD dwWidth, DWORD dwHeig
|
||||||
// Update Interals
|
// Update Interals
|
||||||
BOOL ModeChanged;
|
BOOL ModeChanged;
|
||||||
DdReenableDirectDrawObject(This->lpLcl->lpGbl, &ModeChanged);
|
DdReenableDirectDrawObject(This->lpLcl->lpGbl, &ModeChanged);
|
||||||
StartDirectDraw((LPDIRECTDRAW)iface, 0, TRUE);
|
StartDirectDraw((LPDIRECTDRAW*)iface, 0, TRUE);
|
||||||
|
|
||||||
return DD_OK;
|
return DD_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue