MSW: signedness corrections
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 23 Aug 2009 12:03:45 +0000 (14:03 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 23 Aug 2009 12:03:45 +0000 (14:03 +0200)
modules/video_output/msw/directx.c
modules/video_output/msw/vout.h
modules/video_output/msw/wingdi.c

index eb7ede7..4520511 100644 (file)
@@ -1186,7 +1186,7 @@ int DirectDrawUpdateOverlay( vout_thread_t *p_vout )
 
     if( p_vout->p_sys->b_wallpaper )
     {
-        int i_x, i_y, i_width, i_height;
+        unsigned i_x, i_y, i_width, i_height;
 
         rect_src.left = p_vout->fmt_out.i_x_offset;
         rect_src.top = p_vout->fmt_out.i_y_offset;
index f9118ab..dbe64a0 100644 (file)
@@ -149,8 +149,8 @@ struct vout_sys_t
     /* DDraw capabilities */
     int          b_caps_overlay_clipping;
 
-    int          i_rgb_colorkey;      /* colorkey in RGB used by the overlay */
-    int          i_colorkey;                 /* colorkey used by the overlay */
+    unsigned int    i_rgb_colorkey;      /* colorkey in RGB used by the overlay */
+    unsigned int    i_colorkey;                 /* colorkey used by the overlay */
 
     COLORREF        color_bkg;
     COLORREF        color_bkgtxt;
index 70c963e..41fb2c7 100644 (file)
@@ -358,7 +358,7 @@ static int Manage( vout_thread_t *p_vout )
 
         if( !EqualRect( &rect_parent, &p_vout->p_sys->rect_parent ) )
         {
-            int i_x, i_y, i_width, i_height;
+            unsigned int i_x, i_y, i_width, i_height;
             p_vout->p_sys->rect_parent = rect_parent;
 
             /* This one is to force the update even if only