Codechange: Use EnumBitSet for SpriteComponent. (#13509)

This commit is contained in:
Peter Nelson
2025-02-09 18:37:01 +00:00
committed by GitHub
parent b2f5a4901b
commit ba20ea5d18
8 changed files with 49 additions and 46 deletions

View File

@@ -228,7 +228,8 @@ void Win32FontCache::ClearFontCache()
SpriteLoader::Sprite &sprite = spritecollection[ZOOM_LVL_MIN];
sprite.AllocateData(ZOOM_LVL_MIN, width * height);
sprite.type = SpriteType::Font;
sprite.colours = (aa ? SCC_PAL | SCC_ALPHA : SCC_PAL);
sprite.colours = SpriteComponent::Palette;
if (aa) sprite.colours.Set(SpriteComponent::Alpha);
sprite.width = width;
sprite.height = height;
sprite.x_offs = gm.gmptGlyphOrigin.x;