From 48737c010adb24c7e681259271bf8d959f10ecd0 Mon Sep 17 00:00:00 2001 From: fledge68 Date: Wed, 7 Nov 2012 14:19:01 +0000 Subject: [PATCH] -Fix for source menu buttons transparency, but left/minus page button disappears when you hover over it only on default theme. It still works you just can't see it. --- source/menu/menu_source.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/source/menu/menu_source.cpp b/source/menu/menu_source.cpp index 48cfe2ca..adbbeb8c 100644 --- a/source/menu/menu_source.cpp +++ b/source/menu/menu_source.cpp @@ -109,17 +109,17 @@ void CMenu::_updateSourceBtns(void) STexture texConsoleImgs; ImgName = m_source.getString(fmt("BUTTON_%i", i + j),"image", ""); - if(!STexture::TE_OK == texConsoleImg.fromImageFile(fmt("%s/%s", m_themeDataDir.c_str(), ImgName.c_str()), GX_TF_RGBA8, ALLOC_MEM2)) + if(!STexture::TE_OK == texConsoleImg.fromImageFile(fmt("%s/%s", m_themeDataDir.c_str(), ImgName.c_str()))) { - if(!STexture::TE_OK == texConsoleImg.fromImageFile(fmt("%s/%s", m_sourceDir.c_str(), ImgName.c_str()), GX_TF_RGBA8, ALLOC_MEM2)) + if(!STexture::TE_OK == texConsoleImg.fromImageFile(fmt("%s/%s", m_sourceDir.c_str(), ImgName.c_str()))) { texConsoleImg.fromPNG(favoriteson_png); } } ImgName = m_source.getString(fmt("BUTTON_%i", i + j),"image_s", ""); - if(!STexture::TE_OK == texConsoleImgs.fromImageFile(fmt("%s/%s", m_themeDataDir.c_str(), ImgName.c_str()), GX_TF_RGBA8, ALLOC_MEM2)) + if(!STexture::TE_OK == texConsoleImgs.fromImageFile(fmt("%s/%s", m_themeDataDir.c_str(), ImgName.c_str()))) { - if(!STexture::TE_OK == texConsoleImgs.fromImageFile(fmt("%s/%s", m_sourceDir.c_str(), ImgName.c_str()), GX_TF_RGBA8, ALLOC_MEM2)) + if(!STexture::TE_OK == texConsoleImgs.fromImageFile(fmt("%s/%s", m_sourceDir.c_str(), ImgName.c_str()))) { texConsoleImgs.fromPNG(favoritesons_png); } @@ -432,17 +432,17 @@ void CMenu::_initSourceMenu() STexture texConsoleImgs; ImgName = m_source.getString(fmt("BUTTON_%i", i),"image", ""); - if(!STexture::TE_OK == texConsoleImg.fromImageFile(fmt("%s/%s", m_themeDataDir.c_str(), ImgName.c_str()), GX_TF_RGBA8, ALLOC_MEM2)) + if(!STexture::TE_OK == texConsoleImg.fromImageFile(fmt("%s/%s", m_themeDataDir.c_str(), ImgName.c_str()))) { - if(!STexture::TE_OK == texConsoleImg.fromImageFile(fmt("%s/%s", m_sourceDir.c_str(), ImgName.c_str()), GX_TF_RGBA8, ALLOC_MEM2)) + if(!STexture::TE_OK == texConsoleImg.fromImageFile(fmt("%s/%s", m_sourceDir.c_str(), ImgName.c_str()))) { texConsoleImg.fromPNG(favoriteson_png); } } ImgName = m_source.getString(fmt("BUTTON_%i", i),"image_s", ""); - if(!STexture::TE_OK == texConsoleImgs.fromImageFile(fmt("%s/%s", m_themeDataDir.c_str(), ImgName.c_str()), GX_TF_RGBA8, ALLOC_MEM2)) + if(!STexture::TE_OK == texConsoleImgs.fromImageFile(fmt("%s/%s", m_themeDataDir.c_str(), ImgName.c_str()))) { - if(!STexture::TE_OK == texConsoleImgs.fromImageFile(fmt("%s/%s", m_sourceDir.c_str(), ImgName.c_str()), GX_TF_RGBA8, ALLOC_MEM2)) + if(!STexture::TE_OK == texConsoleImgs.fromImageFile(fmt("%s/%s", m_sourceDir.c_str(), ImgName.c_str()))) { texConsoleImgs.fromPNG(favoritesons_png); }