]> git.sesse.net Git - vlc/blobdiff - modules/video_output/msw/direct2d.c
Wayland/shell: fix NULL dereference in pathological case
[vlc] / modules / video_output / msw / direct2d.c
index 6f5b28a206334a1c97730a10b551f0987be6b029..e758afd4632007da2f89dcd8a196d4bc30f5110f 100644 (file)
@@ -32,7 +32,6 @@
 
 #include <vlc_common.h>
 #include <vlc_plugin.h>
-#include <vlc_playlist.h>
 #include <vlc_vout_display.h>
 
 #include <windows.h>
@@ -347,8 +346,8 @@ static int D2D_CreateRenderTarget(vout_display_t *vd)
     };
 
     D2D1_SIZE_U bitmap_size = {
-        vd->fmt.i_width,
-        vd->fmt.i_height
+        vd->fmt.i_visible_width,
+        vd->fmt.i_visible_height
     };
 
     hr = ID2D1HwndRenderTarget_CreateBitmap(sys->d2_render_target,