Skip to content

Commit

Permalink
Tabs/spaces and some tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
thesourcehim committed Jul 15, 2024
1 parent 9a75aab commit 3a31d0d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion desmume/src/frontend/posix/gtk/graphics.ui
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
<item translatable="yes">Null</item>
<item translatable="yes">SoftRasterizer</item>
<item translatable="yes">OpenGL</item>
<item translatable="yes">OpenGL ES</item>
<item translatable="yes">OpenGL ES</item>
</items>
</object>
<packing>
Expand Down
13 changes: 11 additions & 2 deletions desmume/src/frontend/posix/gtk/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,9 @@ fill_configured_features( class configured_features *config,
"\t\t\t\t 1 = internal rasterizer (default)\n"
#ifdef HAVE_OPENGL
"\t\t\t\t 2 = opengl\n"
#endif
#ifdef HAVE_GLES3
"\t\t\t\t 3 = gles\n"
#endif
,"ENGINE"},
{ "save-type", 0, 0, G_OPTION_ARG_INT, &config->savetype, "Select savetype from the following:\n"
Expand Down Expand Up @@ -476,11 +479,17 @@ fill_configured_features( class configured_features *config,
if (config->engine_3d != 0 && config->engine_3d != 1
#ifdef HAVE_OPENGL
&& config->engine_3d != 2
#endif
#ifdef HAVE_GLES3
&& config->engine_3d != 3
#endif
) {
g_printerr("Currently available ENGINES: 0, 1"
#ifdef HAVE_OPENGL
", 2"
#endif
#ifdef HAVE_GLES3
", 3"
#endif
"\n");
goto error;
Expand Down Expand Up @@ -2256,7 +2265,7 @@ static void GraphicsSettingsDialog(GSimpleAction *action, GVariant *parameter, g
// 3D Texture Smoothing
gtk_toggle_button_set_active(wSmoothing, CommonSettings.GFX3D_Renderer_TextureSmoothing);

#ifdef HAVE_OPENGL
#if defined(HAVE_OPENGL) || defined(HAVE_GLES3)
// OpenGL Multisample
int currentMultisample = CommonSettings.GFX3D_Renderer_MultisampleSize;
int currentActive = 0;
Expand Down Expand Up @@ -2351,7 +2360,7 @@ static void GraphicsSettingsDialog(GSimpleAction *action, GVariant *parameter, g
CommonSettings.GFX3D_Renderer_TextureSmoothing = config.textureSmoothing = gtk_toggle_button_get_active(wSmoothing);
CommonSettings.GFX3D_Renderer_TextureScalingFactor = config.textureUpscale = scale;
CommonSettings.GFX3D_HighResolutionInterpolateColor = config.highColorInterpolation = gtk_toggle_button_get_active(wHCInterpolate);
#ifdef HAVE_OPENGL
#if defined(HAVE_OPENGL) || defined(HAVE_GLES3)
int selectedMultisample = gtk_combo_box_get_active(wMultisample);
config.multisamplingSize = multisampleSizes[selectedMultisample];
config.multisampling = selectedMultisample != 0;
Expand Down

0 comments on commit 3a31d0d

Please sign in to comment.