[vlc-commits] direct3d9: reindent after previous changes
Steve Lhomme
git at videolan.org
Wed Mar 4 16:06:49 CET 2020
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Mar 4 13:33:36 2020 +0100| [5ca3a89dbca812cfc25281ba0d09d041bbdc7e4d] | committer: Steve Lhomme
direct3d9: reindent after previous changes
No functional changes.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5ca3a89dbca812cfc25281ba0d09d041bbdc7e4d
---
modules/video_output/win32/direct3d9.c | 60 +++++++++++++++++-----------------
1 file changed, 30 insertions(+), 30 deletions(-)
diff --git a/modules/video_output/win32/direct3d9.c b/modules/video_output/win32/direct3d9.c
index 71bf83dfe6..8c4297c01e 100644
--- a/modules/video_output/win32/direct3d9.c
+++ b/modules/video_output/win32/direct3d9.c
@@ -369,37 +369,37 @@ static int Direct3D9ImportPicture(vout_display_t *vd,
}
else
{
- /* Copy picture surface into texture surface
- * color space conversion happen here */
- RECT source_visible_rect = {
- .left = vd->source.i_x_offset,
- .right = vd->source.i_x_offset + vd->source.i_visible_width,
- .top = vd->source.i_y_offset,
- .bottom = vd->source.i_y_offset + vd->source.i_visible_height,
- };
- RECT texture_visible_rect = {
- .left = 0,
- .right = vd->source.i_visible_width,
- .top = 0,
- .bottom = vd->source.i_visible_height,
- };
- // 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 (texture_visible_rect.right & 1)
- {
- texture_visible_rect.right++;
- source_visible_rect.right++;
- }
- if (texture_visible_rect.bottom & 1)
- {
- texture_visible_rect.bottom++;
- source_visible_rect.bottom++;
- }
+ /* Copy picture surface into texture surface
+ * color space conversion happen here */
+ RECT source_visible_rect = {
+ .left = vd->source.i_x_offset,
+ .right = vd->source.i_x_offset + vd->source.i_visible_width,
+ .top = vd->source.i_y_offset,
+ .bottom = vd->source.i_y_offset + vd->source.i_visible_height,
+ };
+ RECT texture_visible_rect = {
+ .left = 0,
+ .right = vd->source.i_visible_width,
+ .top = 0,
+ .bottom = vd->source.i_visible_height,
+ };
+ // 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 (texture_visible_rect.right & 1)
+ {
+ texture_visible_rect.right++;
+ source_visible_rect.right++;
+ }
+ if (texture_visible_rect.bottom & 1)
+ {
+ texture_visible_rect.bottom++;
+ source_visible_rect.bottom++;
+ }
- hr = IDirect3DDevice9_StretchRect(sys->d3d9_device->d3ddev.dev, source, &source_visible_rect,
- destination, &texture_visible_rect,
- D3DTEXF_NONE);
+ hr = IDirect3DDevice9_StretchRect(sys->d3d9_device->d3ddev.dev, source, &source_visible_rect,
+ destination, &texture_visible_rect,
+ D3DTEXF_NONE);
}
IDirect3DSurface9_Release(destination);
if (FAILED(hr)) {
More information about the vlc-commits
mailing list