[vlc-devel] [PATCH 40/41] vout:gdi: no need to init the display area

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


The forced UpdateRects a few lines down will set everything properly.

By default it's initialized to an empty rectangle.
---
 modules/video_output/win32/wingdi.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/modules/video_output/win32/wingdi.c b/modules/video_output/win32/wingdi.c
index acba160ce1..9ea2785cfa 100644
--- a/modules/video_output/win32/wingdi.c
+++ b/modules/video_output/win32/wingdi.c
@@ -184,13 +184,6 @@ static int Init(vout_display_t *vd, video_format_t *fmt)
 {
     vout_display_sys_t *sys = vd->sys;
 
-    /* */
-    RECT *display = &sys->sys.area.rect_display;
-    display->left   = 0;
-    display->top    = 0;
-    display->right  = GetSystemMetrics(SM_CXSCREEN);
-    display->bottom = GetSystemMetrics(SM_CYSCREEN);
-
     /* Initialize an offscreen bitmap for direct buffer operations. */
 
     /* */
-- 
2.17.1



More information about the vlc-devel mailing list