ddraw: Indentation fix
Andrew Talbot
andrew.talbot at talbotville.com
Sat May 24 10:37:01 CDT 2008
Changelog:
ddraw: Indentation fix
diff --git a/dlls/ddraw/ddraw.c b/dlls/ddraw/ddraw.c
index 230533f..e62b1ec 100644
--- a/dlls/ddraw/ddraw.c
+++ b/dlls/ddraw/ddraw.c
@@ -1839,8 +1839,8 @@ IDirectDrawImpl_CreateNewSurface(IDirectDrawImpl *This,
}
else
{
- if((pDDSD->ddsCaps.dwCaps & DDSCAPS_3DDEVICE ) &&
- (This->ImplType != SURFACE_OPENGL ) && DefaultSurfaceType == SURFACE_UNKNOWN)
+ if((pDDSD->ddsCaps.dwCaps & DDSCAPS_3DDEVICE ) &&
+ (This->ImplType != SURFACE_OPENGL ) && DefaultSurfaceType == SURFACE_UNKNOWN)
{
/* We have to change to OpenGL,
* and re-create all WineD3DSurfaces
diff --git a/dlls/ddraw/main.c b/dlls/ddraw/main.c
index ac1378d..3b7df98 100644
--- a/dlls/ddraw/main.c
+++ b/dlls/ddraw/main.c
@@ -849,12 +849,12 @@ DllMain(HINSTANCE hInstDLL,
HKEY appkey = 0;
DWORD len;
- /* @@ Wine registry key: HKCU\Software\Wine\Direct3D */
- if ( RegOpenKeyA( HKEY_CURRENT_USER, "Software\\Wine\\Direct3D", &hkey ) ) hkey = 0;
+ /* @@ Wine registry key: HKCU\Software\Wine\Direct3D */
+ if ( RegOpenKeyA( HKEY_CURRENT_USER, "Software\\Wine\\Direct3D", &hkey ) ) hkey = 0;
- len = GetModuleFileNameA( 0, buffer, MAX_PATH );
- if (len && len < MAX_PATH)
- {
+ len = GetModuleFileNameA( 0, buffer, MAX_PATH );
+ if (len && len < MAX_PATH)
+ {
HKEY tmpkey;
/* @@ Wine registry key: HKCU\Software\Wine\AppDefaults\app.exe\Direct3D */
if (!RegOpenKeyA( HKEY_CURRENT_USER, "Software\\Wine\\AppDefaults", &tmpkey ))
@@ -867,10 +867,10 @@ DllMain(HINSTANCE hInstDLL,
if (RegOpenKeyA( tmpkey, appname, &appkey )) appkey = 0;
RegCloseKey( tmpkey );
}
- }
+ }
- if ( 0 != hkey || 0 != appkey )
- {
+ if ( 0 != hkey || 0 != appkey )
+ {
if ( !get_config_key( hkey, appkey, "DirectDrawRenderer", buffer, size) )
{
if (!strcmp(buffer,"gdi"))
@@ -891,25 +891,25 @@ DllMain(HINSTANCE hInstDLL,
}
/* On Windows one can force the refresh rate that DirectDraw uses by
- * setting an override value in dxdiag. This is documented in KB315614
- * (main article), KB230002, and KB217348. By comparing registry dumps
- * before and after setting the override, we see that the override value
- * is stored in HKLM\Software\Microsoft\DirectDraw\ForceRefreshRate as a
- * DWORD that represents the refresh rate to force. We use this
- * registry entry to modify the behavior of SetDisplayMode so that Wine
- * users can override the refresh rate in a Windows-compatible way.
- *
- * dxdiag will not accept a refresh rate lower than 40 or higher than
- * 120 so this value should be within that range. It is, of course,
- * possible for a user to set the registry entry value directly so that
- * assumption might not hold.
- *
- * There is no current mechanism for setting this value through the Wine
- * GUI. It would be most appropriate to set this value through a dxdiag
- * clone, but it may be sufficient to use winecfg.
- *
- * TODO: Create a mechanism for setting this value through the Wine GUI.
- */
+ * setting an override value in dxdiag. This is documented in KB315614
+ * (main article), KB230002, and KB217348. By comparing registry dumps
+ * before and after setting the override, we see that the override value
+ * is stored in HKLM\Software\Microsoft\DirectDraw\ForceRefreshRate as a
+ * DWORD that represents the refresh rate to force. We use this
+ * registry entry to modify the behavior of SetDisplayMode so that Wine
+ * users can override the refresh rate in a Windows-compatible way.
+ *
+ * dxdiag will not accept a refresh rate lower than 40 or higher than
+ * 120 so this value should be within that range. It is, of course,
+ * possible for a user to set the registry entry value directly so that
+ * assumption might not hold.
+ *
+ * There is no current mechanism for setting this value through the Wine
+ * GUI. It would be most appropriate to set this value through a dxdiag
+ * clone, but it may be sufficient to use winecfg.
+ *
+ * TODO: Create a mechanism for setting this value through the Wine GUI.
+ */
if ( !RegOpenKeyA( HKEY_LOCAL_MACHINE, "Software\\Microsoft\\DirectDraw", &hkey ) )
{
DWORD type, data;
More information about the wine-patches
mailing list