mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 04:01:31 +00:00
fix render API selection
This commit is contained in:
parent
8cc531e283
commit
55d90a18dc
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue