Mercurial > mplayer.hg
diff gui/skin/skin.c @ 33084:b8779b19730e
Cosmetic: Rename menuBase menu.
The new name corresponds better to the names of the other wItems and
statements using it are more intelligible.
author | ib |
---|---|
date | Thu, 31 Mar 2011 12:25:32 +0000 |
parents | 8c96263e0f09 |
children | 1b9f989855f3 |
line wrap: on
line diff
--- a/gui/skin/skin.c Thu Mar 31 12:03:54 2011 +0000 +++ b/gui/skin/skin.c Thu Mar 31 12:25:32 2011 +0000 @@ -194,7 +194,7 @@ currWinItemIdx = &appMPlayer.IndexOfBarItems; currWinItems = appMPlayer.barItems; } else if (strcmp(in, "menu") == 0) { - currWin = &appMPlayer.menuBase; + currWin = &appMPlayer.menu; currWinItemIdx = &appMPlayer.IndexOfMenuItems; currWinItems = appMPlayer.menuItems; } else { @@ -280,24 +280,24 @@ mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[skin] image: %s\n", fname); skin->menuIsPresent = 1; - skin->menuBase.type = itBase; + skin->menu.type = itBase; av_strlcpy(tmp, path, sizeof(tmp)); av_strlcat(tmp, fname, sizeof(tmp)); - if (skinBPRead(tmp, &skin->menuBase.Bitmap) != 0) + if (skinBPRead(tmp, &skin->menu.Bitmap) != 0) return 1; - skin->menuBase.width = skin->menuBase.Bitmap.Width; - skin->menuBase.height = skin->menuBase.Bitmap.Height; + skin->menu.width = skin->menu.Bitmap.Width; + skin->menu.height = skin->menu.Bitmap.Height; - mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[skin] bitmap: %dx%d\n", skin->menuBase.width, skin->menuBase.height); + mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[skin] bitmap: %dx%d\n", skin->menu.width, skin->menu.height); #ifdef CONFIG_XSHAPE - Convert32to1(&skin->menuBase.Bitmap, &skin->menuBase.Mask, 0x00ff00ff); - mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[skin] mask: %lux%lu\n", skin->menuBase.Mask.Width, skin->menuBase.Mask.Height); + Convert32to1(&skin->menu.Bitmap, &skin->menu.Mask, 0x00ff00ff); + mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[skin] mask: %lux%lu\n", skin->menu.Mask.Width, skin->menu.Mask.Height); #else - skin->menuBase.Mask.Image = NULL; + skin->menu.Mask.Image = NULL; #endif }