[vlc-commits] direct3d9: reindent after previous changes

Steve Lhomme git at videolan.org
Mon Mar 9 15:28:22 CET 2020


vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Mar  9 15:10:09 2020 +0100| [be2459bf296029b699ae2b5386fee295acd9fd6d] | committer: Steve Lhomme

direct3d9: reindent after previous changes

No functional changes.

(cherry picked from commit 5ca3a89dbca812cfc25281ba0d09d041bbdc7e4d)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=be2459bf296029b699ae2b5386fee295acd9fd6d
---

 modules/video_output/win32/direct3d9.c | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/modules/video_output/win32/direct3d9.c b/modules/video_output/win32/direct3d9.c
index 09a82f2e3c..1709eef504 100644
--- a/modules/video_output/win32/direct3d9.c
+++ b/modules/video_output/win32/direct3d9.c
@@ -1677,18 +1677,18 @@ static int Direct3D9ImportPicture(vout_display_t *vd,
     }
     else
     {
-    /* Copy picture surface into texture surface
-     * color space conversion happen here */
-    RECT copy_rect = sys->sys.rect_src_clipped;
-    // On nVidia & AMD, StretchRect will fail if the visible size isn't even.
-    // When copying the entire buffer, the margin end up being blended in the actual picture
-    // on nVidia (regardless of even/odd dimensions)
-    if ( copy_rect.right & 1 ) copy_rect.right++;
-    if ( copy_rect.left & 1 ) copy_rect.left--;
-    if ( copy_rect.bottom & 1 ) copy_rect.bottom++;
-    if ( copy_rect.top & 1 ) copy_rect.top--;
-    hr = IDirect3DDevice9_StretchRect(sys->d3d_dev.dev, source, &copy_rect, destination,
-                                      &copy_rect, D3DTEXF_NONE);
+        /* Copy picture surface into texture surface
+        * color space conversion happen here */
+        RECT copy_rect = sys->sys.rect_src_clipped;
+        // On nVidia & AMD, StretchRect will fail if the visible size isn't even.
+        // When copying the entire buffer, the margin end up being blended in the actual picture
+        // on nVidia (regardless of even/odd dimensions)
+        if ( copy_rect.right & 1 ) copy_rect.right++;
+        if ( copy_rect.left & 1 ) copy_rect.left--;
+        if ( copy_rect.bottom & 1 ) copy_rect.bottom++;
+        if ( copy_rect.top & 1 ) copy_rect.top--;
+        hr = IDirect3DDevice9_StretchRect(sys->d3d_dev.dev, source, &copy_rect, destination,
+                                        &copy_rect, D3DTEXF_NONE);
     }  
     IDirect3DSurface9_Release(destination);
     if (FAILED(hr)) {



More information about the vlc-commits mailing list