diff options
author | 2011-05-04 22:12:55 +0200 | |
---|---|---|
committer | 2011-05-06 18:33:16 +0300 | |
commit | b68f9fef32971095836ea6bbeb2f12af417120d2 (patch) | |
tree | 46288d0356764318d595a946d22ca31eaf6b0101 /libvo/vo_x11.c | |
parent | 40f6ab5064a628dc11b79b5e571dc9444efac093 (diff) |
cleanup: shut up more warnings
Diffstat (limited to 'libvo/vo_x11.c')
-rw-r--r-- | libvo/vo_x11.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c index ec85c7b747..8e34503bb9 100644 --- a/libvo/vo_x11.c +++ b/libvo/vo_x11.c @@ -306,12 +306,7 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t flags, char *title, uint32_t format) { -// int screen; - -// int interval, prefer_blank, allow_exp, nothing; - unsigned int fg, bg; Colormap theCmap; - XSetWindowAttributes xswa; unsigned long xswamask; const struct fmt2Xfmtentry_s *fmte = fmt2Xfmt; @@ -358,22 +353,13 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width, vo_vm_switch(); } #endif - bg = WhitePixel(mDisplay, mScreen); - fg = BlackPixel(mDisplay, mScreen); - theCmap = vo_x11_create_colormap(&vinfo); - xswa.background_pixel = 0; - xswa.border_pixel = 0; - xswa.colormap = theCmap; xswamask = CWBackPixel | CWBorderPixel | CWColormap; #ifdef CONFIG_XF86VM if (vm) - { - xswa.override_redirect = True; xswamask |= CWOverrideRedirect; - } #endif vo_x11_create_vo_window(&vinfo, vo_dx, vo_dy, vo_dwidth, vo_dheight, @@ -553,7 +539,7 @@ static int draw_slice(uint8_t * src[], int stride[], int w, int h, dst[0] += dstStride[0] * (image_height - 1); dstStride[0] = -dstStride[0]; } - sws_scale(swsContext, src, stride, y, h, dst, dstStride); + sws_scale(swsContext, (const uint8_t **)src, stride, y, h, dst, dstStride); return 0; } |