]> git.sesse.net Git - vlc/commitdiff
Win32: use video-x and video-y (fixes #3215)
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 6 Mar 2010 16:48:43 +0000 (18:48 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 6 Mar 2010 16:48:43 +0000 (18:48 +0200)
modules/video_output/msw/common.c
modules/video_output/msw/direct3d.c
modules/video_output/msw/events.c

index d21e211ea1ac56cde869e76e67953ef4445cd2af..8dd2d79f061b362e6e89cf39fc7f9b343e67d45b 100644 (file)
@@ -100,8 +100,8 @@ int CommonInit(vout_display_t *vd)
     cfg.use_overlay = sys->use_overlay;
 #endif
     cfg.win.type   = VOUT_WINDOW_TYPE_HWND;
-    cfg.win.x      = 0;
-    cfg.win.y      = 0;
+    cfg.win.x      = var_InheritInteger(vd, "video-x");
+    cfg.win.y      = var_InheritInteger(vd, "video-y");
     cfg.win.width  = vd->cfg->display.width;
     cfg.win.height = vd->cfg->display.height;
 
index c24fed0798e20499851c14a74e36ed1176b8f14f..dce4e039dc4995201f1ccca30c16766ed6531c68 100644 (file)
@@ -144,9 +144,9 @@ static int Open(vlc_object_t *object)
     sys->allow_hw_yuv = var_CreateGetBool(vd, "directx-hw-yuv");
     sys->desktop_save.is_fullscreen = vd->cfg->is_fullscreen;
     sys->desktop_save.is_on_top     = false;
-    sys->desktop_save.win.left      = 0;
+    sys->desktop_save.win.left      = var_InheritInteger(vd, "video-x");
     sys->desktop_save.win.right     = vd->cfg->display.width;
-    sys->desktop_save.win.top       = 0;
+    sys->desktop_save.win.top       = var_InheritInteger(vd, "video-y");
     sys->desktop_save.win.bottom    = vd->cfg->display.height;
 
     if (CommonInit(vd))
index 81822418e04de633d51890d125d7c0fcf7895934..b4fb0eb2120f05050cf4c61eac5f5a1c708e9cff 100644 (file)
@@ -507,8 +507,8 @@ static int DirectXCreateWindow( event_thread_t *p_event )
      * have. Unfortunatly these dimensions will include the borders and
      * titlebar. We use the following function to find out the size of
      * the window corresponding to the useable surface we want */
-    rect_window.top    = 10;
     rect_window.left   = 10;
+    rect_window.top    = 10;
     rect_window.right  = rect_window.left + p_event->wnd_cfg.width;
     rect_window.bottom = rect_window.top  + p_event->wnd_cfg.height;