Index: libvo/vo_kva.c
===================================================================
--- libvo/vo_kva.c	(revision 36952)
+++ libvo/vo_kva.c	(working copy)
@@ -466,6 +560,20 @@
         return (MRESULT)TRUE;
         }

+    case WM_SIZE:
+        {
+        RECTL rcl;
+
+        WinQueryWindowRect(hwnd, &rcl);
+
+        vo_dwidth  = rcl.xRight - rcl.xLeft;
+        vo_dheight = rcl.yTop - rcl.yBottom;
+
+        panscan_calc_windowed();
+
+        return 0;
+        }
+
     case WM_BUTTON1DOWN:
     case WM_BUTTON3DOWN:
     case WM_BUTTON2DOWN:
@@ -479,6 +587,19 @@

         return (MRESULT)TRUE;

+    case WM_MOUSEMOVE:
+        {
+        int x = SHORT1FROMMP(mp1);
+        int y = SHORT2FROMMP(mp1);
+
+        // invert Y
+        y = (vo_dheight - 1) - y;
+
+        vo_mouse_movement(x, y);
+
+        break;
+        }
+
     case WM_PAINT:
         {
         HPS     hps;