From 141bd94cf2fe82ef994704008038b86ef3fdec5c Mon Sep 17 00:00:00 2001 From: kreatordxx <> Date: Sat, 22 Mar 2008 08:30:23 +0000 Subject: [PATCH] scale Mac fonts correctly --- CHANGELOG.txt | 1 + main/gamefont.c | 15 ++++++++++++++- main/mission.h | 1 + 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index b1cd5e2ac..8626be2e4 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -3,6 +3,7 @@ D1X-Rebirth Changelog 20080322 -------- d1x-rebirth.xcodeproj, INSTALL.txt, SConstruct: make compile instructions clearer for Windows and Mac users, for Mac OS X don't use Sharepath when using SConstruct, handle warnings differently in Xcode +main/gamefont.c, main/mission.h: scale Mac fonts correctly 20080321 -------- diff --git a/main/gamefont.c b/main/gamefont.c index 1c6c80ad6..b68b303c1 100644 --- a/main/gamefont.c +++ b/main/gamefont.c @@ -27,6 +27,7 @@ COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED. #include "args.h" #include "cfile.h" #include "gamefont.h" +#include "mission.h" char * Gamefont_filenames_l[] = { "font1-1.fnt", // Font 0 @@ -145,10 +146,19 @@ void addfontconf(int gf, int x, int y, char * fn){ void gamefont_init() { int i; + int mac_hog = 0; if (Gamefont_installed) return; + switch (cfile_size("descent.hog")) + { + case D1_MAC_SHARE_MISSION_HOGSIZE: + case D1_MAC_MISSION_HOGSIZE: + mac_hog = 1; + break; + } + Gamefont_installed = 1; for (i=0;isc_canvas.cv_bitmap.bm_w,grd_curscreen->sc_canvas.cv_bitmap.bm_h); diff --git a/main/mission.h b/main/mission.h index 8c25e2684..169d8885d 100644 --- a/main/mission.h +++ b/main/mission.h @@ -21,6 +21,7 @@ COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED. #define _MISSION_H #include "pstypes.h" +#include "inferno.h" #define MAX_MISSIONS 5000 // ZICO - changed from 300 to get more levels in list #define MAX_LEVELS_PER_MISSION 30