https://git.reactos.org/?p=reactos.git;a=commitdiff;h=5e8e654dfdb4fc998757d…
commit 5e8e654dfdb4fc998757d203c3c521fae2ebdf12
Author: Serge Gautherie <reactos-git_serge_171003(a)gautherie.fr>
AuthorDate: Thu Oct 11 18:48:17 2018 +0200
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Sat Dec 8 17:10:36 2018 +0100
[DDRAW] Remove useless 'else's.
---
dll/directx/ddraw/Ddraw/ddraw_displaymode.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/dll/directx/ddraw/Ddraw/ddraw_displaymode.c
b/dll/directx/ddraw/Ddraw/ddraw_displaymode.c
index 5b5c910dc7..77677f85ff 100644
--- a/dll/directx/ddraw/Ddraw/ddraw_displaymode.c
+++ b/dll/directx/ddraw/Ddraw/ddraw_displaymode.c
@@ -78,19 +78,19 @@ Main_DirectDraw_EnumDisplayModes(LPDDRAWI_DIRECTDRAW_INT This, DWORD
dwFlags,
if(pDDSD)
{
- if(pDDSD->dwFlags & DDSD_HEIGHT && pDDSD->dwHeight
!= SurfaceDesc.dwHeight)
+ if (pDDSD->dwFlags & DDSD_HEIGHT && pDDSD->dwHeight
!= SurfaceDesc.dwHeight)
continue;
- else if(pDDSD->dwFlags & DDSD_WIDTH &&
pDDSD->dwWidth != SurfaceDesc.dwWidth)
+ if (pDDSD->dwFlags & DDSD_WIDTH && pDDSD->dwWidth
!= SurfaceDesc.dwWidth)
continue;
- else if(pDDSD->dwFlags & DDSD_PITCH &&
pDDSD->lPitch != SurfaceDesc.lPitch)
+ if (pDDSD->dwFlags & DDSD_PITCH && pDDSD->lPitch !=
SurfaceDesc.lPitch)
continue;
- else if(pDDSD->dwFlags & DDSD_REFRESHRATE &&
pDDSD->dwRefreshRate != SurfaceDesc.dwRefreshRate)
+ if (pDDSD->dwFlags & DDSD_REFRESHRATE &&
pDDSD->dwRefreshRate != SurfaceDesc.dwRefreshRate)
continue;
- else if(pDDSD->dwFlags & DDSD_PIXELFORMAT &&
pDDSD->ddpfPixelFormat.dwRGBBitCount != SurfaceDesc.ddpfPixelFormat.dwRGBBitCount)
+ if (pDDSD->dwFlags & DDSD_PIXELFORMAT &&
pDDSD->ddpfPixelFormat.dwRGBBitCount != SurfaceDesc.ddpfPixelFormat.dwRGBBitCount)
continue; // FIXME: test for the other members of
ddpfPixelFormat as well
}
@@ -176,19 +176,19 @@ Main_DirectDraw_EnumDisplayModes4(LPDDRAWI_DIRECTDRAW_INT This,
DWORD dwFlags,
if(pDDSD)
{
- if(pDDSD->dwFlags & DDSD_HEIGHT && pDDSD->dwHeight
!= SurfaceDesc.dwHeight)
+ if (pDDSD->dwFlags & DDSD_HEIGHT && pDDSD->dwHeight
!= SurfaceDesc.dwHeight)
continue;
- else if(pDDSD->dwFlags & DDSD_WIDTH &&
pDDSD->dwWidth != SurfaceDesc.dwWidth)
+ if (pDDSD->dwFlags & DDSD_WIDTH && pDDSD->dwWidth
!= SurfaceDesc.dwWidth)
continue;
- else if(pDDSD->dwFlags & DDSD_PITCH &&
pDDSD->lPitch != SurfaceDesc.lPitch)
+ if (pDDSD->dwFlags & DDSD_PITCH && pDDSD->lPitch !=
SurfaceDesc.lPitch)
continue;
- else if(pDDSD->dwFlags & DDSD_REFRESHRATE &&
pDDSD->dwRefreshRate != SurfaceDesc.dwRefreshRate)
+ if (pDDSD->dwFlags & DDSD_REFRESHRATE &&
pDDSD->dwRefreshRate != SurfaceDesc.dwRefreshRate)
continue;
- else if(pDDSD->dwFlags & DDSD_PIXELFORMAT &&
pDDSD->ddpfPixelFormat.dwRGBBitCount != SurfaceDesc.ddpfPixelFormat.dwRGBBitCount)
+ if (pDDSD->dwFlags & DDSD_PIXELFORMAT &&
pDDSD->ddpfPixelFormat.dwRGBBitCount != SurfaceDesc.ddpfPixelFormat.dwRGBBitCount)
continue; // FIXME: test for the other members of
ddpfPixelFormat as well
}