1
0
Fork 0

first commit

This commit is contained in:
root 2024-11-23 01:15:11 +02:00
commit 528f89a79b
90 changed files with 13567 additions and 0 deletions

View file

@ -0,0 +1,27 @@
From dc0057d1200f9bb6b67f1b1a2094b7e402d1d370 Mon Sep 17 00:00:00 2001
From: James Le Cuirot <chewi@gentoo.org>
Date: Sat, 20 Feb 2021 12:28:48 +0000
Subject: [PATCH] Don't force FluidSynth to use ALSA on Linux
---
src/Audio/MIDIPlayer.cpp | 4 ----
1 file changed, 4 deletions(-)
diff --git a/src/Audio/MIDIPlayer.cpp b/src/Audio/MIDIPlayer.cpp
index bb001339..f33ffe67 100644
--- a/src/Audio/MIDIPlayer.cpp
+++ b/src/Audio/MIDIPlayer.cpp
@@ -344,10 +344,6 @@ public:
fs_initialised_ = false;
file_ = "";
- // Set fluidsynth driver to alsa in linux (no idea why it defaults to jack)
- if (app::platform() == app::Platform::Linux && fs_driver.value.empty())
- fs_driver = "alsa";
-
// Init soundfont path
if (fs_soundfont_path.value.empty())
{
--
2.30.0

View file

@ -0,0 +1,25 @@
SFML's render window only supports X11 under Linux, so SLADE crashes if GDK
chooses the Wayland backend. This patch tells GDK to prefer the X11 backend.
SLADE 3.3.0 will apparently not use the render window.
diff --git a/src/Application/SLADEWxApp.cpp b/src/Application/SLADEWxApp.cpp
index 3dadf241..de01e340 100644
--- a/src/Application/SLADEWxApp.cpp
+++ b/src/Application/SLADEWxApp.cpp
@@ -52,6 +52,16 @@
using namespace slade;
+#ifdef __WXGTK__
+#include <gdk/gdk.h>
+
+struct PreferX11 {
+ PreferX11() { gdk_set_allowed_backends("x11,*"); }
+};
+static PreferX11 preferx11;
+#endif
+
+
// -----------------------------------------------------------------------------
//
// Variables