mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-21 19:51:27 +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();
|
||||
|
||||
#ifdef RENDER_BACKENDS
|
||||
double x = w / 2 - panelWidth / 2;
|
||||
y = 0;
|
||||
BackendLabel->SetFrameGeometry(x, y, 190.0, BackendLabel->GetPreferredHeight());
|
||||
y += BackendLabel->GetPreferredHeight();
|
||||
|
||||
|
@ -192,7 +194,6 @@ void SettingsPage::OnGeometryChanged()
|
|||
OpenGLCheckbox->SetFrameGeometry(x, y, 190.0, OpenGLCheckbox->GetPreferredHeight());
|
||||
y += OpenGLCheckbox->GetPreferredHeight();
|
||||
|
||||
double x = w / 2 - panelWidth / 2;
|
||||
GLESCheckbox->SetFrameGeometry(x, y, 190.0, GLESCheckbox->GetPreferredHeight());
|
||||
y += GLESCheckbox->GetPreferredHeight();
|
||||
#endif
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#include <zwidget/core/widget.h>
|
||||
|
||||
// #define RENDER_BACKENDS
|
||||
#define RENDER_BACKENDS
|
||||
|
||||
class LauncherWindow;
|
||||
class TextLabel;
|
||||
|
|
Loading…
Reference in a new issue