[All] Fixed multiple issues during build on Linux

- Added some fixes introduced by RodoMa92 in PR198

- Lack of AVX2 extension (should be done differently in the future)
- Disable deprecated-volatile warning
- Added missing override in posix EventInfo, ImGui notification class and XContent class
- Removed not used XAudio2.h include in XMP
- Fixed missing switch-case in XObject
- Added fugly template in native_list.h
- Fixed multiple smaller issues
This commit is contained in:
Gliniak
2025-01-08 22:27:51 +01:00
committed by Radosław Gliński
parent cdd3f161fa
commit 09be7e874a
31 changed files with 117 additions and 76 deletions

View File

@@ -170,7 +170,7 @@ void AchievementNotificationWindow::OnDraw(ImGuiIO& io) {
ImGui::SameLine();
if (notification_draw_progress_ > 0.5f) {
ImGui::TextColored(white_color, GetNotificationText().c_str());
ImGui::TextColored(white_color, "%s", GetNotificationText().c_str());
}
}
// Restore previous style
@@ -248,7 +248,7 @@ void XNotifyWindow::OnDraw(ImGuiIO& io) {
ImGui::SameLine();
if (notification_draw_progress_ > 0.5f) {
ImGui::TextColored(white_color, GetDescription().c_str());
ImGui::TextColored(white_color, "%s", GetDescription().c_str());
}
}
// Restore previous style

View File

@@ -57,7 +57,7 @@ class ImGuiGuestNotification : public ImGuiNotification {
const ImVec2 CalculateNotificationSize(ImVec2 text_size,
float scale) override;
virtual void OnDraw(ImGuiIO& io) {}
virtual void OnDraw(ImGuiIO& io) override {}
float notification_draw_progress_;

View File

@@ -79,9 +79,9 @@ void HostNotificationWindow::OnDraw(ImGuiIO& io) {
{
ImGui::SetWindowFontScale(window_scale);
ImGui::Text(GetTitle().c_str());
ImGui::Text("%s", GetTitle().c_str());
ImGui::Separator();
ImGui::Text(GetDescription().c_str());
ImGui::Text("%s", GetDescription().c_str());
}
ImGui::End();
}

View File

@@ -32,7 +32,7 @@ class ImGuiHostNotification : public ImGuiNotification {
const ImVec2 CalculateNotificationSize(ImVec2 text_size,
float scale) override;
virtual void OnDraw(ImGuiIO& io) {}
virtual void OnDraw(ImGuiIO& io) override {}
};
class HostNotificationWindow final : ImGuiHostNotification {