gsdx: very old typo on option name

Windows uses Renderer with an uppercase R
This commit is contained in:
Gregory Hainaut 2015-06-20 16:17:15 +02:00
parent cfff229977
commit 7135867119
2 changed files with 13 additions and 13 deletions

View File

@ -204,7 +204,7 @@ static int _GSopen(void** dsp, char* title, int renderer, int threads = -1)
if(renderer == -1) if(renderer == -1)
{ {
renderer = theApp.GetConfig("renderer", 0); renderer = theApp.GetConfig("Renderer", 0);
} }
if(threads == -1) if(threads == -1)
@ -448,9 +448,9 @@ EXPORT_C_(int) GSopen2(void** dsp, uint32 flags)
#ifdef __linux__ #ifdef __linux__
// Use ogl renderer as default otherwise it crash at startup // Use ogl renderer as default otherwise it crash at startup
// GSRenderOGL only GSDeviceOGL (not GSDeviceNULL) // GSRenderOGL only GSDeviceOGL (not GSDeviceNULL)
int renderer = theApp.GetConfig("renderer", 12); int renderer = theApp.GetConfig("Renderer", 12);
#else #else
int renderer = theApp.GetConfig("renderer", 0); int renderer = theApp.GetConfig("Renderer", 0);
#endif #endif
if(flags & 4) if(flags & 4)
@ -520,7 +520,7 @@ EXPORT_C_(int) GSopen(void** dsp, char* title, int mt)
{ {
// normal init // normal init
renderer = theApp.GetConfig("renderer", 0); renderer = theApp.GetConfig("Renderer", 0);
} }
*dsp = NULL; *dsp = NULL;
@ -1485,7 +1485,7 @@ EXPORT_C GSReplay(char* lpszCmdLine, int renderer)
GLLoader::in_replayer = true; GLLoader::in_replayer = true;
// Allow to easyly switch between SW/HW renderer // Allow to easyly switch between SW/HW renderer
renderer = theApp.GetConfig("renderer", 12); renderer = theApp.GetConfig("Renderer", 12);
if (renderer != 12 && renderer != 13) if (renderer != 12 && renderer != 13)
{ {
fprintf(stderr, "wrong renderer selected %d\n", renderer); fprintf(stderr, "wrong renderer selected %d\n", renderer);

View File

@ -31,15 +31,15 @@ void CB_ChangedRenderComboBox(GtkComboBox *combo, gpointer user_data)
// Note the value are based on m_gs_renderers vector on GSdx.cpp // Note the value are based on m_gs_renderers vector on GSdx.cpp
switch (gtk_combo_box_get_active(combo)) { switch (gtk_combo_box_get_active(combo)) {
case 0: theApp.SetConfig("renderer", 10); break; case 0: theApp.SetConfig("Renderer", 10); break;
case 1: theApp.SetConfig("renderer", 16); break; case 1: theApp.SetConfig("Renderer", 16); break;
case 2: theApp.SetConfig("renderer", 11); break; case 2: theApp.SetConfig("Renderer", 11); break;
case 3: theApp.SetConfig("renderer", 12); break; case 3: theApp.SetConfig("Renderer", 12); break;
case 4: theApp.SetConfig("renderer", 13); break; case 4: theApp.SetConfig("Renderer", 13); break;
case 5: theApp.SetConfig("renderer", 17); break; case 5: theApp.SetConfig("Renderer", 17); break;
// Fallback to SW opengl // Fallback to SW opengl
default: theApp.SetConfig("renderer", 13); break; default: theApp.SetConfig("Renderer", 13); break;
} }
} }
@ -76,7 +76,7 @@ GtkWidget* CreateRenderComboBox()
gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(render_combo_box), label.c_str()); gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(render_combo_box), label.c_str());
} }
switch (theApp.GetConfig("renderer", 0)) { switch (theApp.GetConfig("Renderer", 0)) {
// Note the value are based on m_gs_renderers vector on GSdx.cpp // Note the value are based on m_gs_renderers vector on GSdx.cpp
case 10: renderer_box_position = 0; break; case 10: renderer_box_position = 0; break;
case 16: renderer_box_position = 1; break; case 16: renderer_box_position = 1; break;