diff VideoPlayer.cpp @ 2151:92511cd8fcdb

Cleaned some variables.
author Nomad
date Wed, 08 Jan 2014 22:29:11 +0200
parents ca548138d6aa
children d44b7775fc06
line wrap: on
line diff
--- a/VideoPlayer.cpp	Wed Jan 08 17:25:34 2014 +0600
+++ b/VideoPlayer.cpp	Wed Jan 08 22:29:11 2014 +0200
@@ -110,7 +110,7 @@
     v11.dwHeight = uHeight;
     *(_QWORD *)&v11.ddpfPixelFormat.dwSize = 0x400000020ui64;// DDPF_FOURCC
     v11.ddpfPixelFormat.dwFourCC = 0x32595559u;
-    if ( dword_6BE384_2dacceloff || pRenderer->pDirectDraw4->CreateSurface(&v11, &v15, 0) )
+    if (FAILED(pRenderer->pDirectDraw4->CreateSurface(&v11, &v15, 0)))
     {
       memset(&v11.ddpfPixelFormat, 0, sizeof(DDPIXELFORMAT));
 
@@ -153,8 +153,7 @@
     Dst.ddpfPixelFormat.dwSize = 32;
     Dst.ddpfPixelFormat.dwFlags = 4;
     Dst.ddpfPixelFormat.dwFourCC = 844715353;
-    if ( dword_6BE384_2dacceloff
-      || pRenderer->pDirectDraw2->CreateSurface(&Dst, (LPDIRECTDRAWSURFACE *)&a2, 0) )
+    if (FAILED(pRenderer->pDirectDraw2->CreateSurface(&Dst, (LPDIRECTDRAWSURFACE *)&a2, 0)))
     {
       memset(&Dst.ddpfPixelFormat, 0, sizeof(DDPIXELFORMAT));