Skip to content

Commit

Permalink
gui: Fix texture variable for setting cursor position for gif window
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel16 committed Sep 14, 2020
1 parent f1dcf92 commit a6139b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<ImTextureID>(textures[frame_count].id), ImVec2(textures[frame_count].width, textures[frame_count].height));
Expand Down

0 comments on commit a6139b4

Please sign in to comment.