fix render API selection

This commit is contained in:
Christoph Oelckers 2024-01-10 23:26:45 +01:00
parent 8cc531e283
commit 55d90a18dc
2 changed files with 3 additions and 2 deletions

View file

@ -183,6 +183,8 @@ void SettingsPage::OnGeometryChanged()
y += DontAskAgainCheckbox->GetPreferredHeight(); y += DontAskAgainCheckbox->GetPreferredHeight();
#ifdef RENDER_BACKENDS #ifdef RENDER_BACKENDS
double x = w / 2 - panelWidth / 2;
y = 0;
BackendLabel->SetFrameGeometry(x, y, 190.0, BackendLabel->GetPreferredHeight()); BackendLabel->SetFrameGeometry(x, y, 190.0, BackendLabel->GetPreferredHeight());
y += BackendLabel->GetPreferredHeight(); y += BackendLabel->GetPreferredHeight();
@ -192,7 +194,6 @@ void SettingsPage::OnGeometryChanged()
OpenGLCheckbox->SetFrameGeometry(x, y, 190.0, OpenGLCheckbox->GetPreferredHeight()); OpenGLCheckbox->SetFrameGeometry(x, y, 190.0, OpenGLCheckbox->GetPreferredHeight());
y += OpenGLCheckbox->GetPreferredHeight(); y += OpenGLCheckbox->GetPreferredHeight();
double x = w / 2 - panelWidth / 2;
GLESCheckbox->SetFrameGeometry(x, y, 190.0, GLESCheckbox->GetPreferredHeight()); GLESCheckbox->SetFrameGeometry(x, y, 190.0, GLESCheckbox->GetPreferredHeight());
y += GLESCheckbox->GetPreferredHeight(); y += GLESCheckbox->GetPreferredHeight();
#endif #endif

View file

@ -2,7 +2,7 @@
#include <zwidget/core/widget.h> #include <zwidget/core/widget.h>
// #define RENDER_BACKENDS #define RENDER_BACKENDS
class LauncherWindow; class LauncherWindow;
class TextLabel; class TextLabel;