From a6139b45a4a8294dcfb9f76afacea6f9c8c7fa1e Mon Sep 17 00:00:00 2001 From: Joel16 Date: Sun, 13 Sep 2020 21:18:31 -0400 Subject: [PATCH] gui: Fix texture variable for setting cursor position for gif window --- source/gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/gui.cpp b/source/gui.cpp index 4ad5eae..6774518 100644 --- a/source/gui.cpp +++ b/source/gui.cpp @@ -67,8 +67,8 @@ namespace GUI { if (ImGui::Begin(entry->d_name, nullptr, ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoTitleBar)) { frame_count++; - if ((texture->width <= 960) && (texture->height <= 544)) - ImGui::SetCursorPos((ImGui::GetWindowSize() - ImVec2(texture->width, texture->height)) * 0.5f); + if ((textures[0].width <= 960) && (textures[0].height <= 544)) + ImGui::SetCursorPos((ImGui::GetWindowSize() - ImVec2(textures[0].width, textures[0].height)) * 0.5f); sceKernelDelayThread(textures[frame_count].delay * 10000); ImGui::Image(reinterpret_cast(textures[frame_count].id), ImVec2(textures[frame_count].width, textures[frame_count].height));