(Menu) Fix video_shader_pass setting

This commit is contained in:
twinaphex 2014-09-04 17:45:02 +02:00
parent 514e454f16
commit 7f34615a49
2 changed files with 3 additions and 2 deletions

View File

@ -1850,7 +1850,7 @@ static int menu_action_ok(const char *dir,
else if (!strcmp(menu_label, "video_shader_pass")
&& type == MENU_FILE_PLAIN)
{
unsigned pass = (menu_type - MENU_SETTINGS_SHADER_0) / 3;
unsigned pass = (menu_type) / 3;
fill_pathname_join(driver.menu->shader->pass[pass].source.path,
dir, path, sizeof(driver.menu->shader->pass[pass].source.path));

View File

@ -56,7 +56,8 @@ extern "C" {
typedef enum
{
MENU_FILE_PLAIN = 1,
MENU_FILE_NONE,
MENU_FILE_PLAIN,
MENU_FILE_DIRECTORY,
MENU_FILE_DEVICE,
MENU_FILE_CORE,