From 70aa3b401145ec6bb98073a2758206cf63e15da1 Mon Sep 17 00:00:00 2001 From: Michael Lutz Date: Sat, 16 Jan 2021 16:43:30 +0100 Subject: Codechange: Give sprite encoders a hint which colour components of a sprite are filled with useful information. --- src/os/windows/font_win32.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/os/windows') diff --git a/src/os/windows/font_win32.cpp b/src/os/windows/font_win32.cpp index 7df24828b..a3b60933c 100644 --- a/src/os/windows/font_win32.cpp +++ b/src/os/windows/font_win32.cpp @@ -495,6 +495,7 @@ void Win32FontCache::ClearFontCache() SpriteLoader::Sprite sprite; sprite.AllocateData(ZOOM_LVL_NORMAL, width * height); sprite.type = ST_FONT; + sprite.colours = (aa ? SCC_PAL | SCC_ALPHA : SCC_PAL); sprite.width = width; sprite.height = height; sprite.x_offs = gm.gmptGlyphOrigin.x; -- cgit v1.2.3-54-g00ecf