[vlc-devel] [PATCH 30/41] vout:win32: remove unused source_visible_rect

Steve Lhomme robux4 at ycbcr.xyz
Fri Mar 22 16:14:08 CET 2019


---
 modules/video_output/win32/common.c | 9 ---------
 modules/video_output/win32/common.h | 1 -
 2 files changed, 10 deletions(-)

diff --git a/modules/video_output/win32/common.c b/modules/video_output/win32/common.c
index 56a6e9886b..db48f86c5b 100644
--- a/modules/video_output/win32/common.c
+++ b/modules/video_output/win32/common.c
@@ -220,7 +220,6 @@ static void UpdateRectsInternal(vout_display_t *vd, vout_display_sys_win32_t *sy
     }
 #endif
 
-#define source_visible_rect sys->area.source_visible_rect
 #define rect_src            sys->area.rect_src
 #define rect_dest           sys->area.rect_dest
     /* Destination image position and dimensions */
@@ -238,7 +237,6 @@ static void UpdateRectsInternal(vout_display_t *vd, vout_display_sys_win32_t *sy
 
     /* the 2 following lines are to fix a bug when clicking on the desktop */
     if (place.width == 0 || place.height == 0) {
-        SetRectEmpty(&source_visible_rect);
         goto exit;
     }
 
@@ -248,12 +246,6 @@ static void UpdateRectsInternal(vout_display_t *vd, vout_display_sys_win32_t *sy
     rect_src.right = sys->area.pf_GetPictureWidth(vd);
     rect_src.bottom = sys->area.pf_GetPictureHeight(vd);
 
-    /* Clip the source image */
-    source_visible_rect.left   = source->i_x_offset;
-    source_visible_rect.right  = source->i_x_offset + source->i_visible_width;
-    source_visible_rect.top    = source->i_y_offset;
-    source_visible_rect.bottom = source->i_y_offset + source->i_visible_height;
-
 #ifndef NDEBUG
     msg_Dbg(vd, "DirectXUpdateRects source"
         " offset: %i,%i visible: %ix%i",
@@ -278,7 +270,6 @@ exit:
     sys->area.changes |= DX_POSITION_CHANGE;
 
 #undef rect_src
-#undef source_visible_rect
 #undef rect_dest
 }
 
diff --git a/modules/video_output/win32/common.h b/modules/video_output/win32/common.h
index a9ea22b411..0b41d9132d 100644
--- a/modules/video_output/win32/common.h
+++ b/modules/video_output/win32/common.h
@@ -36,7 +36,6 @@ typedef struct display_win32_area_t
 
     /* Coordinates of src and dest images (used when blitting to display) */
     RECT         rect_src;
-    RECT         source_visible_rect;
     RECT         rect_dest;
 
     vout_display_cfg_t vdcfg;
-- 
2.17.1



More information about the vlc-devel mailing list