diff options
author | nick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-04 17:01:12 +0000 |
---|---|---|
committer | nick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-04 17:01:12 +0000 |
commit | ab6ccafde348407bfbbca8b448301841fefe82ca (patch) | |
tree | b0b8228006142109a0084d741c756cc129882ecb /libvo/vo_vesa.c | |
parent | 27b389565961c428cc374adc55e9899439768823 (diff) | |
download | mpv-ab6ccafde348407bfbbca8b448301841fefe82ca.tar.bz2 mpv-ab6ccafde348407bfbbca8b448301841fefe82ca.tar.xz |
Code cleanup
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2689 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_vesa.c')
-rw-r--r-- | libvo/vo_vesa.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/libvo/vo_vesa.c b/libvo/vo_vesa.c index c3fe248164..55a47fbce3 100644 --- a/libvo/vo_vesa.c +++ b/libvo/vo_vesa.c @@ -50,6 +50,7 @@ extern int verbose; #define min(a,b) ((a)<(b)?(a):(b)) #endif +#define UNUSED(x) ((void)(x)) /**< Removes warning about unused arguments */ static vo_info_t vo_info = { @@ -291,6 +292,13 @@ static void draw_alpha_15(int x0,int y0, int w,int h, unsigned char* src, unsign static void draw_alpha_null(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride) { + UNUSED(x0); + UNUSED(y0); + UNUSED(w); + UNUSED(h); + UNUSED(src); + UNUSED(srca); + UNUSED(stride); } @@ -829,9 +837,8 @@ init(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint3 printf("vo_vesa: VESA initialization complete\n"); fflush(stdout); } - if(HAS_DGA()) + if(HAS_DGA() && vo_doublebuffering) { - int y = 0; for(i=0;i<MAX_BUFFERS;i++) { win.ptr = dga_buffer = video_base + multi_buff[i]; |