[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:
committed by
Radosław Gliński
parent
cdd3f161fa
commit
09be7e874a
@@ -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
|
||||
|
||||
@@ -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_;
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user