From 0907e3c680c55535ea765a19b4737fb32462d2ec Mon Sep 17 00:00:00 2001 From: saschawillems Date: Mon, 30 Oct 2017 18:03:48 +0100 Subject: [PATCH] Overlay setting member name --- base/vulkanexamplebase.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/base/vulkanexamplebase.cpp b/base/vulkanexamplebase.cpp index 052d05d7..b77dc636 100644 --- a/base/vulkanexamplebase.cpp +++ b/base/vulkanexamplebase.cpp @@ -468,7 +468,7 @@ void VulkanExampleBase::renderLoop() fpsTimer += (float)tDiff; if (fpsTimer > 1000.0f) { - if (!enableTextOverlay) + if (!settings.overlay) { std::string windowTitle = getWindowTitle(); wl_shell_surface_set_title(shell_surface, windowTitle.c_str()); @@ -517,7 +517,7 @@ void VulkanExampleBase::renderLoop() fpsTimer += (float)tDiff; if (fpsTimer > 1000.0f) { - if (!enableTextOverlay) + if (!settings.overlay) { std::string windowTitle = getWindowTitle(); xcb_change_property(connection, XCB_PROP_MODE_REPLACE, @@ -1538,7 +1538,7 @@ void VulkanExampleBase::keyboardKey(struct wl_keyboard *keyboard, paused = !paused; break; case KEY_F1: - if (state && enableTextOverlay) + if (state && settings.overlay) textOverlay->visible = !textOverlay->visible; break; case KEY_ESC: @@ -1852,7 +1852,7 @@ void VulkanExampleBase::handleEvent(const xcb_generic_event_t *event) paused = !paused; break; case KEY_F1: - if (enableTextOverlay) + if (settings.overlay) { textOverlay->visible = !textOverlay->visible; }