Disable font anti-aliasing when FIX_BUGS is enabled

It causes ugly artifacting around the text
This commit is contained in:
Clownacy 2019-07-15 18:20:24 +00:00
parent 9eaba52caf
commit a679373c14

View file

@ -14,8 +14,16 @@
#include "File.h" #include "File.h"
// Uncomment for that authentic pre-Windows Vista feel // Cave Story wasn't intended to use font anti-aliasing. It's only because Microsoft enabled it
//#define DISABLE_FONT_ANTIALIASING // 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 MIN
#undef MAX #undef MAX