diff options
author | ivo <ivo@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-08-05 01:24:37 +0000 |
---|---|---|
committer | ivo <ivo@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-08-05 01:24:37 +0000 |
commit | cd55954e4e8cfe7c5653fc9df1d6ecdf2533dd00 (patch) | |
tree | dc84e22e112201b3911edd0a1b6ddac9b2012f59 /libvo/vo_tdfxfb.c | |
parent | 205db1107439080dcd0915e862ae15b3289f400d (diff) | |
download | mpv-cd55954e4e8cfe7c5653fc9df1d6ecdf2533dd00.tar.bz2 mpv-cd55954e4e8cfe7c5653fc9df1d6ecdf2533dd00.tar.xz |
Fix the return types of all (six) libvo API functions. Used to be uint32_t, but
return values can be negative (VO_ERROR, VO_NOTAVAIL and VO_NOTIMPL), so it's
changed to int now.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16172 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_tdfxfb.c')
-rw-r--r-- | libvo/vo_tdfxfb.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libvo/vo_tdfxfb.c b/libvo/vo_tdfxfb.c index b67827d9db..4b9c422ada 100644 --- a/libvo/vo_tdfxfb.c +++ b/libvo/vo_tdfxfb.c @@ -81,7 +81,7 @@ static voodoo_yuv_reg *reg_YUV; static struct YUV_plane *YUV; static void (*alpha_func)(), (*alpha_func_double)(); -static uint32_t preinit(const char *arg) +static int preinit(const char *arg) { char *name; @@ -210,7 +210,7 @@ static void setup_screen(uint32_t full) clear_screen(); } -static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, +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) { screenwidth = fb_vinfo.xres; @@ -412,13 +412,13 @@ static void flip_page(void) reg_IO->vidDesktopStartAddr = vidpageoffset; } -static uint32_t draw_frame(uint8_t *src[]) +static int draw_frame(uint8_t *src[]) { mem2agpcpy(inpage, src[0], in_width * in_depth * in_height); return 0; } -static uint32_t draw_slice(uint8_t *i[], int s[], int w, int h, int x, int y) +static int draw_slice(uint8_t *i[], int s[], int w, int h, int x, int y) { /* We want to render to the YUV to the input page + the location * of the stripes we're doing */ @@ -477,7 +477,7 @@ static uint32_t get_image(mp_image_t *mpi) return VO_TRUE; } -static uint32_t control(uint32_t request, void *data, ...) +static int control(uint32_t request, void *data, ...) { switch(request) { case VOCTRL_GET_IMAGE: |