diff options
Diffstat (limited to 'mm/2s2h/BenGui/Notification.cpp')
| -rw-r--r-- | mm/2s2h/BenGui/Notification.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mm/2s2h/BenGui/Notification.cpp b/mm/2s2h/BenGui/Notification.cpp index 619351a54..5abbc9a8c 100644 --- a/mm/2s2h/BenGui/Notification.cpp +++ b/mm/2s2h/BenGui/Notification.cpp @@ -7,6 +7,8 @@ extern "C" { #include "variables.h" } +#include <fast/Fast3dGui.h> + namespace Notification { static uint32_t nextId = 0; @@ -89,7 +91,8 @@ void Window::Draw() { if (notification.itemIcon != nullptr) { ImGui::Image( - Ship::Context::GetInstance()->GetWindow()->GetGui()->GetTextureByName(notification.itemIcon), + std::dynamic_pointer_cast<Fast::Fast3dGui>(Ship::Context::GetRawInstance()->GetWindow()->GetGui()) + ->GetTextureByName(notification.itemIcon), ImVec2(22 * CVarGetFloat("gNotifications.Size", 1.8f), 22 * CVarGetFloat("gNotifications.Size", 1.8f))); ImGui::SameLine(); } |
