From a679373c14df49ec7fe3b0ce7377290556667112 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Mon, 15 Jul 2019 18:20:24 +0000 Subject: [PATCH] Disable font anti-aliasing when FIX_BUGS is enabled It causes ugly artifacting around the text --- src/Font.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/Font.cpp b/src/Font.cpp index 4ce46010..210e2124 100644 --- a/src/Font.cpp +++ b/src/Font.cpp @@ -14,8 +14,16 @@ #include "File.h" -// Uncomment for that authentic pre-Windows Vista feel -//#define DISABLE_FONT_ANTIALIASING +// Cave Story wasn't intended to use font anti-aliasing. It's only because Microsoft enabled it +// by default from Windows Vista onwards that the game started using it. +// Font anti-aliasing conflicts with the game's colour-keying, causing ugly artifacting around +// the text in numerous cases. +// The only way to 'fix' the artifacting is to convert the entire drawing system to use alpha +// blending instead of colour-keying, which is way out of scope for a simple compile flag, so +// instead we just disable the anti-aliasing entirely. It's how it was meant to be anyway. +#ifdef FIX_BUGS +#define DISABLE_FONT_ANTIALIASING +#endif #undef MIN #undef MAX