2020-06-13 03:55:49 +02:00
|
|
|
diff --git a/crawl-ref/source/util/find_font b/crawl-ref/source/util/find_font
|
2021-01-23 06:27:25 +01:00
|
|
|
index f8b576fd63..b95c21c0a1 100755
|
2020-06-13 03:55:49 +02:00
|
|
|
--- a/crawl-ref/source/util/find_font
|
|
|
|
+++ b/crawl-ref/source/util/find_font
|
2016-11-23 16:04:18 +01:00
|
|
|
@@ -1,6 +1,6 @@
|
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
-FONTDIRS="/usr/share/fonts /usr/local/share/fonts /usr/*/lib/X11/fonts"
|
|
|
|
+FONTDIRS="${fontsPath}/share/fonts"
|
|
|
|
|
|
|
|
name=$1
|
|
|
|
[ "$name" ] || { echo "Usage: $0 <fontname.ttf>" >&2; exit 100; }
|
2021-01-23 06:27:25 +01:00
|
|
|
@@ -11,6 +11,6 @@ name=$1
|
2016-11-23 16:04:18 +01:00
|
|
|
for dir in $FONTDIRS; do
|
|
|
|
[ -d "$dir" ] && echo "$dir"
|
|
|
|
done
|
|
|
|
- } | xargs -I% find % \( -type f -o -type l \) -iname "$name" -print \
|
|
|
|
+ } | xargs -I% find -L % \( -type f -o -type l \) -iname "$name" -print \
|
|
|
|
| head -n1
|
|
|
|
} 2>/dev/null
|
2019-04-11 22:34:04 +02:00
|
|
|
diff --git a/crawl-ref/source/windowmanager-sdl.cc b/crawl-ref/source/windowmanager-sdl.cc
|
2021-01-23 06:27:25 +01:00
|
|
|
index e29ccff507..9bf01e040a 100644
|
2019-04-11 22:34:04 +02:00
|
|
|
--- a/crawl-ref/source/windowmanager-sdl.cc
|
|
|
|
+++ b/crawl-ref/source/windowmanager-sdl.cc
|
|
|
|
@@ -20,7 +20,7 @@
|
|
|
|
# else
|
|
|
|
# include <SDL2/SDL.h>
|
|
|
|
# endif
|
|
|
|
-# include <SDL_image.h>
|
|
|
|
+# include <SDL2/SDL_image.h>
|
|
|
|
# if defined(USE_SOUND) && !defined(WINMM_PLAY_SOUNDS)
|
|
|
|
# include <SDL2/SDL_mixer.h>
|
2020-06-13 03:55:49 +02:00
|
|
|
# endif
|