File diff r27105:4235592d0ef1 → r27106:2d95beb51290
src/os/windows/font_win32.cpp
Show inline comments
 
@@ -453,13 +453,13 @@ void Win32FontCache::ClearFontCache()
 
	byte *bmp = new byte[size];
 
	GetGlyphOutline(this->dc, key, GGO_GLYPH_INDEX | (aa ? GGO_GRAY8_BITMAP : GGO_BITMAP), &gm, size, bmp, &mat);
 

	
 
	/* GDI has rendered the glyph, now we allocate a sprite and copy the image into it. */
 
	SpriteLoader::Sprite sprite;
 
	sprite.AllocateData(ZOOM_LVL_NORMAL, width * height);
 
	sprite.type = ST_FONT;
 
	sprite.type = SpriteType::Font;
 
	sprite.colours = (aa ? SCC_PAL | SCC_ALPHA : SCC_PAL);
 
	sprite.width = width;
 
	sprite.height = height;
 
	sprite.x_offs = gm.gmptGlyphOrigin.x;
 
	sprite.y_offs = this->ascender - gm.gmptGlyphOrigin.y;