(PS3) Trying to have tranparent PNG with game image on back

in ingame menu
This commit is contained in:
TwinAphex51224 2012-02-14 21:34:18 +01:00
parent 48d589ffce
commit cb3064201e
3 changed files with 11 additions and 7 deletions

View File

@ -341,7 +341,7 @@ static void get_environment_settings(void)
/* now we fill in all the variables */
snprintf(DEFAULT_PRESET_FILE, sizeof(DEFAULT_PRESET_FILE), "%s/presets/stock.conf", usrDirPath);
snprintf(DEFAULT_BORDER_FILE, sizeof(DEFAULT_BORDER_FILE), "%s/borders/Centered-1080p/mega-man-2.png", usrDirPath);
snprintf(DEFAULT_MENU_BORDER_FILE, sizeof(DEFAULT_MENU_BORDER_FILE), "%s/borders/Menu/main-menu.jpg", usrDirPath);
snprintf(DEFAULT_MENU_BORDER_FILE, sizeof(DEFAULT_MENU_BORDER_FILE), "%s/borders/Menu/main-menu.png", usrDirPath);
snprintf(GAME_AWARE_SHADER_DIR_PATH, sizeof(GAME_AWARE_SHADER_DIR_PATH), "%s/gameaware", usrDirPath);
snprintf(PRESETS_DIR_PATH, sizeof(PRESETS_DIR_PATH), "%s/presets", usrDirPath);
snprintf(INPUT_PRESETS_DIR_PATH, sizeof(INPUT_PRESETS_DIR_PATH), "%s/input-presets", usrDirPath);

View File

@ -1978,22 +1978,25 @@ void menu_loop(void)
menu_reinit_settings();
if(g_console.emulator_initialized)
video_gl.set_swap_block_state(NULL, true);
if(g_console.ingame_menu_enable)
{
menuStackindex++;
menuStack[menuStackindex] = menu_filebrowser;
menuStack[menuStackindex].enum_id = INGAME_MENU;
video_gl.set_swap_block_state(NULL, true);
}
do
{
glClear(GL_COLOR_BUFFER_BIT);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glEnable(GL_BLEND);
gl_frame_menu();
if(g_console.ingame_menu_enable)
if(g_console.emulator_initialized)
ssnes_render_cached_frame();
else
gl_frame_menu();
switch(menuStack[menuStackindex].enum_id)
{
@ -2034,13 +2037,14 @@ void menu_loop(void)
}
video_gl.swap(NULL);
glDisable(GL_BLEND);
}while (g_console.menu_enable);
if(g_console.ingame_menu_enable)
{
menuStackindex--; // pop ingame menu from stack
if(g_console.emulator_initialized)
video_gl.set_swap_block_state(NULL, false);
}
g_console.ingame_menu_enable = false;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB