[vlc-commits] vout:gdi: rename variable that is also a define

Steve Lhomme git at videolan.org
Fri Mar 29 17:31:33 CET 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Mar 22 11:07:53 2019 +0100| [e9d9c329bf2771a9b878730d2b86b00be00d2650] | committer: Steve Lhomme

vout:gdi: rename variable that is also a define

The compiler should be nice and warn there is something wrong.

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

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

diff --git a/modules/video_output/win32/wingdi.c b/modules/video_output/win32/wingdi.c
index 20535e1f8d..b0ef32c39f 100644
--- a/modules/video_output/win32/wingdi.c
+++ b/modules/video_output/win32/wingdi.c
@@ -148,23 +148,23 @@ static void Display(vout_display_t *vd, picture_t *picture)
 #define rect_src_clipped vd->sys->sys.rect_src_clipped
 #define rect_dest vd->sys->sys.rect_dest
 #define rect_dest_clipped vd->sys->sys.rect_dest_clipped
-    RECT rect_dst = rect_dest_clipped;
+    RECT dst_rect = rect_dest_clipped;
     HDC hdc = GetDC(sys->sys.hvideownd);
 
-    OffsetRect(&rect_dst, -rect_dest.left, -rect_dest.top);
+    OffsetRect(&dst_rect, -rect_dest.left, -rect_dest.top);
     SelectObject(sys->off_dc, sys->off_bitmap);
 
     if (RECTWidth(rect_dest_clipped) != RECTWidth(rect_src_clipped) ||
         RECTHeight(rect_dest_clipped) != RECTHeight(rect_src_clipped)) {
-        StretchBlt(hdc, rect_dst.left, rect_dst.top,
-                   rect_dst.right, rect_dst.bottom,
+        StretchBlt(hdc, dst_rect.left, dst_rect.top,
+                   dst_rect.right, dst_rect.bottom,
                    sys->off_dc,
                    rect_src_clipped.left,  rect_src_clipped.top,
                    rect_src_clipped.right, rect_src_clipped.bottom,
                    SRCCOPY);
     } else {
-        BitBlt(hdc, rect_dst.left, rect_dst.top,
-               rect_dst.right, rect_dst.bottom,
+        BitBlt(hdc, dst_rect.left, dst_rect.top,
+               dst_rect.right, dst_rect.bottom,
                sys->off_dc,
                rect_src_clipped.left, rect_src_clipped.top,
                SRCCOPY);



More information about the vlc-commits mailing list