# HG changeset patch # User michael # Date 1046043256 0 # Node ID 78e86ff778b75a832398a078696fb8826a15cf71 # Parent 2837f8da12c4fa8e0001f6cc0401284e1dc55c18 100l diff -r 2837f8da12c4 -r 78e86ff778b7 libvo/vo_aa.c --- a/libvo/vo_aa.c Sun Feb 23 23:30:44 2003 +0000 +++ b/libvo/vo_aa.c Sun Feb 23 23:34:16 2003 +0000 @@ -79,7 +79,7 @@ #ifdef USE_OSD font_desc_t* vo_font_save = NULL; #endif -static SwsContext *sws=NULL; +static struct SwsContext *sws=NULL; extern m_config_t *mconfig; /* our version of the playmodes :) */ @@ -119,8 +119,8 @@ screen_x = (aa_scrwidth(c) - screen_w) / 2; screen_y = (aa_scrheight(c) - screen_h) / 2; - if(sws) freeSwsContext(sws); - sws = getSwsContextFromCmdLine(src_width,src_height,image_format, + if(sws) sws_freeContext(sws); + sws = sws_getContextFromCmdLine(src_width,src_height,image_format, image_width,image_height,IMGFMT_Y8); image[0] = aa_image(c) + image_y * aa_imgwidth(c) + image_x; @@ -360,7 +360,7 @@ break; } - sws->swScale(sws,src,stride,0,src_height,image,image_stride); + sws_scale(sws,src,stride,0,src_height,image,image_stride); /* Now 'ASCIInate' the image */ if (fast) @@ -380,7 +380,7 @@ int dx2 = screen_x + ((x+w) * screen_w / src_width); int dy2 = screen_y + ((y+h) * screen_h / src_height); - sws->swScale(sws,src,stride,y,h,image,image_stride); + sws_scale(sws,src,stride,y,h,image,image_stride); /* Now 'ASCIInate' the image */ if (fast)