Overlay setting member name
This commit is contained in:
parent
287a9b5762
commit
0907e3c680
1 changed files with 4 additions and 4 deletions
|
|
@ -468,7 +468,7 @@ void VulkanExampleBase::renderLoop()
|
||||||
fpsTimer += (float)tDiff;
|
fpsTimer += (float)tDiff;
|
||||||
if (fpsTimer > 1000.0f)
|
if (fpsTimer > 1000.0f)
|
||||||
{
|
{
|
||||||
if (!enableTextOverlay)
|
if (!settings.overlay)
|
||||||
{
|
{
|
||||||
std::string windowTitle = getWindowTitle();
|
std::string windowTitle = getWindowTitle();
|
||||||
wl_shell_surface_set_title(shell_surface, windowTitle.c_str());
|
wl_shell_surface_set_title(shell_surface, windowTitle.c_str());
|
||||||
|
|
@ -517,7 +517,7 @@ void VulkanExampleBase::renderLoop()
|
||||||
fpsTimer += (float)tDiff;
|
fpsTimer += (float)tDiff;
|
||||||
if (fpsTimer > 1000.0f)
|
if (fpsTimer > 1000.0f)
|
||||||
{
|
{
|
||||||
if (!enableTextOverlay)
|
if (!settings.overlay)
|
||||||
{
|
{
|
||||||
std::string windowTitle = getWindowTitle();
|
std::string windowTitle = getWindowTitle();
|
||||||
xcb_change_property(connection, XCB_PROP_MODE_REPLACE,
|
xcb_change_property(connection, XCB_PROP_MODE_REPLACE,
|
||||||
|
|
@ -1538,7 +1538,7 @@ void VulkanExampleBase::keyboardKey(struct wl_keyboard *keyboard,
|
||||||
paused = !paused;
|
paused = !paused;
|
||||||
break;
|
break;
|
||||||
case KEY_F1:
|
case KEY_F1:
|
||||||
if (state && enableTextOverlay)
|
if (state && settings.overlay)
|
||||||
textOverlay->visible = !textOverlay->visible;
|
textOverlay->visible = !textOverlay->visible;
|
||||||
break;
|
break;
|
||||||
case KEY_ESC:
|
case KEY_ESC:
|
||||||
|
|
@ -1852,7 +1852,7 @@ void VulkanExampleBase::handleEvent(const xcb_generic_event_t *event)
|
||||||
paused = !paused;
|
paused = !paused;
|
||||||
break;
|
break;
|
||||||
case KEY_F1:
|
case KEY_F1:
|
||||||
if (enableTextOverlay)
|
if (settings.overlay)
|
||||||
{
|
{
|
||||||
textOverlay->visible = !textOverlay->visible;
|
textOverlay->visible = !textOverlay->visible;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue