Mercurial > mplayer.hg
changeset 33548:55b8f5d5df15
Remove unused parameter 'Size' in wsConvert().
author | ib |
---|---|
date | Fri, 17 Jun 2011 17:51:50 +0000 |
parents | 82909caef905 |
children | 4f6e515e5bd1 |
files | gui/interface.c gui/mplayer/gui_common.c gui/mplayer/gui_common.h gui/mplayer/menu.c gui/mplayer/mw.c gui/mplayer/pb.c gui/mplayer/play.c gui/wm/ws.c gui/wm/ws.h |
diffstat | 9 files changed, 11 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/interface.c Fri Jun 17 13:22:41 2011 +0000 +++ b/gui/interface.c Fri Jun 17 17:51:50 2011 +0000 @@ -289,7 +289,7 @@ wsClearWindow(appMPlayer.subWindow); if (appMPlayer.sub.Bitmap.Image) - wsConvert(&appMPlayer.subWindow, appMPlayer.sub.Bitmap.Image, appMPlayer.sub.Bitmap.ImageSize); + wsConvert(&appMPlayer.subWindow, appMPlayer.sub.Bitmap.Image); btnModify(evSetVolume, guiIntfStruct.Volume); btnModify(evSetBalance, guiIntfStruct.Balance);
--- a/gui/mplayer/gui_common.c Fri Jun 17 13:22:41 2011 +0000 +++ b/gui/mplayer/gui_common.c Fri Jun 17 17:51:50 2011 +0000 @@ -379,7 +379,7 @@ } } -void RenderAll(wsTWindow *window, wItem *Items, int nrItems, char *db, int size) +void RenderAll(wsTWindow *window, wItem *Items, int nrItems, char *db) { wItem *item; txSample *image = NULL; @@ -481,5 +481,5 @@ } } - wsConvert(window, db, size); + wsConvert(window, db); }
--- a/gui/mplayer/gui_common.h Fri Jun 17 13:22:41 2011 +0000 +++ b/gui/mplayer/gui_common.h Fri Jun 17 17:51:50 2011 +0000 @@ -21,6 +21,6 @@ #include "gui/app.h" -void RenderAll(wsTWindow *window, wItem *Items, int nrItems, char *db, int size); +void RenderAll(wsTWindow *window, wItem *Items, int nrItems, char *db); #endif /* MPLAYER_GUI_GUI_COMMON_H */
--- a/gui/mplayer/menu.c Fri Jun 17 13:22:41 2011 +0000 +++ b/gui/mplayer/menu.c Fri Jun 17 17:51:50 2011 +0000 @@ -61,7 +61,7 @@ } mplOldMenuItem=mplMenuItem; // --- - wsConvert( &appMPlayer.menuWindow,mplMenuDrawBuffer,appMPlayer.menu.Bitmap.ImageSize ); + wsConvert( &appMPlayer.menuWindow,mplMenuDrawBuffer ); mplMenuRender=0; } wsPutImage( &appMPlayer.menuWindow );
--- a/gui/mplayer/mw.c Fri Jun 17 13:22:41 2011 +0000 +++ b/gui/mplayer/mw.c Fri Jun 17 17:51:50 2011 +0000 @@ -87,7 +87,7 @@ btnModify( evSetVolume,guiIntfStruct.Volume ); fast_memcpy( mplDrawBuffer,appMPlayer.main.Bitmap.Image,appMPlayer.main.Bitmap.ImageSize ); - RenderAll( &appMPlayer.mainWindow,appMPlayer.mainItems,appMPlayer.IndexOfMainItems,mplDrawBuffer,appMPlayer.main.Bitmap.ImageSize ); + RenderAll( &appMPlayer.mainWindow,appMPlayer.mainItems,appMPlayer.IndexOfMainItems,mplDrawBuffer ); mplMainRender=0; } wsPutImage( &appMPlayer.mainWindow );
--- a/gui/mplayer/pb.c Fri Jun 17 13:22:41 2011 +0000 +++ b/gui/mplayer/pb.c Fri Jun 17 17:51:50 2011 +0000 @@ -106,8 +106,8 @@ vo_mouse_autohide=0; fast_memcpy( mplPBDrawBuffer,appMPlayer.bar.Bitmap.Image,appMPlayer.bar.Bitmap.ImageSize ); - RenderAll( &appMPlayer.barWindow,appMPlayer.barItems,appMPlayer.IndexOfBarItems,mplPBDrawBuffer,appMPlayer.bar.Bitmap.ImageSize ); - wsConvert( &appMPlayer.barWindow,mplPBDrawBuffer,appMPlayer.bar.Bitmap.ImageSize ); + RenderAll( &appMPlayer.barWindow,appMPlayer.barItems,appMPlayer.IndexOfBarItems,mplPBDrawBuffer ); + wsConvert( &appMPlayer.barWindow,mplPBDrawBuffer ); } wsPutImage( &appMPlayer.barWindow ); }
--- a/gui/mplayer/play.c Fri Jun 17 13:22:41 2011 +0000 +++ b/gui/mplayer/play.c Fri Jun 17 17:51:50 2011 +0000 @@ -239,7 +239,7 @@ } if (appMPlayer.sub.Bitmap.Image) - wsConvert(&appMPlayer.subWindow, appMPlayer.sub.Bitmap.Image, appMPlayer.sub.Bitmap.ImageSize); + wsConvert(&appMPlayer.subWindow, appMPlayer.sub.Bitmap.Image); if (!guiIntfStruct.Playing) { mplSubRender = 1;
--- a/gui/wm/ws.c Fri Jun 17 13:22:41 2011 +0000 +++ b/gui/wm/ws.c Fri Jun 17 17:51:50 2011 +0000 @@ -979,7 +979,7 @@ // ---------------------------------------------------------------------------------------------- // Put 'Image' to window. // ---------------------------------------------------------------------------------------------- -void wsConvert(wsTWindow *win, unsigned char *Image, unsigned int Size) +void wsConvert(wsTWindow *win, unsigned char *Image) { const uint8_t *src[4] = { Image, NULL, NULL, NULL }; int src_stride[4] = { 4 * win->xImage->width, 0, 0, 0 }; @@ -987,8 +987,6 @@ int dst_stride[4]; int i; - (void)Size; - sws_ctx = sws_getCachedContext(sws_ctx, win->xImage->width, win->xImage->height, PIX_FMT_RGB32, win->xImage->width, win->xImage->height, out_pix_fmt, SWS_POINT, NULL, NULL, NULL);
--- a/gui/wm/ws.h Fri Jun 17 13:22:41 2011 +0000 +++ b/gui/wm/ws.h Fri Jun 17 17:51:50 2011 +0000 @@ -262,7 +262,7 @@ // Image handling // ---------------------------------------------------------------------------------------------- void wsCreateImage(wsTWindow *win, int Width, int Height); -void wsConvert(wsTWindow *win, unsigned char *Image, unsigned int Size); +void wsConvert(wsTWindow *win, unsigned char *Image); void wsPutImage(wsTWindow *win); void wsResizeImage(wsTWindow *win, int Width, int Height); void wsDestroyImage(wsTWindow *win);