 +    ID3D11DeviceContext_Map(picture->p_sys->context, (ID3D11Resource*)picture->p_sys->surface, 0, D3D11_MAP_WRITE_DISCARD, 0, &mappedResource);
 +    CommonUpdatePicture(picture, NULL, mappedResource.pData, mappedResource.RowPitch);
 +    ID3D11DeviceContext_Unmap(picture->p_sys->context,(ID3D11Resource*)picture->p_sys->surface, 0);
-+    return VLC_SUCCESS;
-+}
-+
-+static int DesktopCallback(vlc_object_t *object, char const *psz_cmd,
-+                            vlc_value_t oldval, vlc_value_t newval,
-+                            void *p_data)
-+{
-+    vout_display_t *vd = (vout_display_t *)object;
-+    vout_display_sys_t *sys = vd->sys;
-+    VLC_UNUSED(psz_cmd);
-+    VLC_UNUSED(oldval);
-+    VLC_UNUSED(p_data);
-+
-+    vlc_mutex_lock(&sys->lock);
-+    const bool ch_desktop = !sys->desktop_requested != !newval.b_bool;
-+    sys->ch_desktop |= ch_desktop;
-+    sys->desktop_requested = newval.b_bool;
-+    vlc_mutex_unlock(&sys->lock);
 +    return VLC_SUCCESS;
 +}
 diff --git a/modules/video_output/msw/events.c b/modules/video_output/msw/events.c

From 5d9078e9028694a01c9bdbcb12589143ef2156e6 Mon Sep 17 00:00:00 2001
From: Martell Malone <martellmalone@gmail.com>
Date: Wed, 24 Dec 2014 16:37:27 +0000
Subject: [PATCH] d3d11 vout plugin

     rect_dest.left   = 0;
     rect_dest.right  = place.width;
     rect_dest.top    = 0;
@@ -425,7 +444,7 @@ void UpdateRects(vout_display_t *vd,
     /* Apply overlay hardware constraints */
     if (sys->use_overlay)
         AlignRect(&rect_src_clipped, sys->i_align_src_boundary, sys->i_align_src_size);
