diff options
-rw-r--r-- | libvo/x11_common.c | 3 | ||||
-rw-r--r-- | postproc/yuv2rgb.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c index a572560e6c..b69d8d3c78 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -594,10 +594,11 @@ int vo_x11_check_events(Display *mydisplay){ { Window root; int foo; + Window win; XGetGeometry(mydisplay, vo_window, &root, &foo, &foo, &foo/*width*/, &foo/*height*/, &foo, &foo); XTranslateCoordinates(mydisplay, vo_window, root, 0, 0, - &vo_dx, &vo_dy, (Window *)&foo); + &vo_dx, &vo_dy, &win); } #endif ret|=VO_EVENT_RESIZE; diff --git a/postproc/yuv2rgb.c b/postproc/yuv2rgb.c index ac5f8b7e91..10db46f467 100644 --- a/postproc/yuv2rgb.c +++ b/postproc/yuv2rgb.c @@ -407,7 +407,7 @@ static void yuv2rgb_c_init (int bpp, int mode) uint32_t *table_32 = 0; uint16_t *table_16 = 0; uint8_t *table_8 = 0; - uint32_t entry_size = 0; + int entry_size = 0; void *table_r = 0, *table_g = 0, *table_b = 0; int crv = Inverse_Table_6_9[matrix_coefficients][0]; |