Commit 3948fd7

Nick committed on
Fix ifdefs for linux
commit 3948fd78cc8bcb22b0b4d99f0faeed3797a1cf84 parent 4415f25
1 changed files +5−3
ModifiedhUGETracker.lpr +5−3
@@ -7,8 +7,10 @@ program hUGETracker;
7 {$endif} 7 {$endif}
8 8
9 uses 9 uses
10 {$ifdef unix} 10 {$ifdef UNIX}
11 cthreads, 11 cthreads,
12 {$endif}
13 {$ifdef LINUX}
12 fontconfig, 14 fontconfig,
13 {$endif} 15 {$endif}
14 {$ifdef MSWINDOWS} 16 {$ifdef MSWINDOWS}
@@ -58,8 +60,8 @@ begin
58 Writeln(StdErr, '[ERROR] Couldn''t load Pixelite!!!'); 60 Writeln(StdErr, '[ERROR] Couldn''t load Pixelite!!!');
59 {$endif} 61 {$endif}
60 62
61 {$ifdef UNIX} 63 {$ifdef LINUX}
62 // This is the correct way to load a font on Linux according to... I dunno man, but this seems to work 64 // https://gitlab.gnome.org/GNOME/gtk/-/issues/3886
63 if FcConfigAppFontAddFile(nil, PChar('PixeliteTTF.ttf')) = 0 then 65 if FcConfigAppFontAddFile(nil, PChar('PixeliteTTF.ttf')) = 0 then
64 Writeln(StdErr, '[ERROR] Couldn''t load Pixelite!!!'); 66 Writeln(StdErr, '[ERROR] Couldn''t load Pixelite!!!');
65 67