Mercurial > mplayer.hg
changeset 33969:9184bc37d4d5
Cosmetic: Rename skinBPRead() skinImageRead().
Additionally, rename parameter bf img.
author | ib |
---|---|
date | Mon, 05 Sep 2011 16:00:37 +0000 |
parents | 253620911a2e |
children | 9b28414785e1 |
files | gui/skin/font.c gui/skin/skin.c gui/skin/skin.h |
diffstat | 3 files changed, 10 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/skin/font.c Mon Sep 05 15:47:55 2011 +0000 +++ b/gui/skin/font.c Mon Sep 05 16:00:37 2011 +0000 @@ -156,7 +156,7 @@ mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[font] image file: %s\n", buf); - if (skinBPRead(buf, &Fonts[id]->Bitmap) != 0) { + if (skinImageRead(buf, &Fonts[id]->Bitmap) != 0) { bpFree(&Fonts[id]->Bitmap); nfree(Fonts[id]); fclose(f);
--- a/gui/skin/skin.c Mon Sep 05 15:47:55 2011 +0000 +++ b/gui/skin/skin.c Mon Sep 05 16:00:37 2011 +0000 @@ -133,9 +133,9 @@ * * @return return code of #bpRead() */ -int skinBPRead(char *fname, guiImage *bf) +int skinImageRead(char *fname, guiImage *img) { - int i = bpRead(fname, bf); + int i = bpRead(fname, img); switch (i) { case -1: @@ -340,7 +340,7 @@ av_strlcpy(file, path, sizeof(file)); av_strlcat(file, fname, sizeof(file)); - if (skinBPRead(file, &currWin->Bitmap) != 0) + if (skinImageRead(file, &currWin->Bitmap) != 0) return 1; currWin->width = currWin->Bitmap.Width; @@ -470,7 +470,7 @@ av_strlcpy(file, path, sizeof(file)); av_strlcat(file, fname, sizeof(file)); - if (skinBPRead(file, &item->Bitmap) != 0) + if (skinImageRead(file, &item->Bitmap) != 0) return 1; mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[skin] (bitmap: %lux%lu)\n", item->Bitmap.Width, item->Bitmap.Height); @@ -511,7 +511,7 @@ av_strlcpy(file, path, sizeof(file)); av_strlcat(file, in, sizeof(file)); - if (skinBPRead(file, &currItem->Bitmap) != 0) + if (skinImageRead(file, &currItem->Bitmap) != 0) return 1; currItem->width = currItem->Bitmap.Width; @@ -652,7 +652,7 @@ av_strlcpy(buf, path, sizeof(buf)); av_strlcat(buf, phfname, sizeof(buf)); - if (skinBPRead(buf, &item->Bitmap) != 0) + if (skinImageRead(buf, &item->Bitmap) != 0) return 1; mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[skin] (potmeter bitmap: %lux%lu)\n", item->Bitmap.Width, item->Bitmap.Height); @@ -664,7 +664,7 @@ av_strlcpy(buf, path, sizeof(buf)); av_strlcat(buf, pfname, sizeof(buf)); - if (skinBPRead(buf, &item->Mask) != 0) + if (skinImageRead(buf, &item->Mask) != 0) return 1; mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[skin] (button bitmap: %lux%lu)\n", item->Mask.Width, item->Mask.Height); @@ -761,7 +761,7 @@ av_strlcpy(buf, path, sizeof(buf)); av_strlcat(buf, phfname, sizeof(buf)); - if (skinBPRead(buf, &item->Bitmap) != 0) + if (skinImageRead(buf, &item->Bitmap) != 0) return 1; mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[skin] (bitmap: %lux%lu)\n", item->Bitmap.Width, item->Bitmap.Height);
--- a/gui/skin/skin.h Mon Sep 05 15:47:55 2011 +0000 +++ b/gui/skin/skin.h Mon Sep 05 16:00:37 2011 +0000 @@ -24,7 +24,7 @@ extern char *skinDirInHome; extern char *skinMPlayerDir; -int skinBPRead(char *fname, guiImage *bf); +int skinImageRead(char *fname, guiImage *bf); int skinRead(char *dname); #endif /* MPLAYER_GUI_SKIN_H */