fixed a error that it mistake count.

This commit is contained in:
hyzboy 2022-02-18 19:04:48 +08:00
parent 693bc33720
commit 556e523684

View File

@ -17,7 +17,7 @@ TileFont *GPUDevice::CreateTileFont(FontSource *fs,int limit_count)
{
const VkExtent2D &ext=GetSwapchainSize();
limit_count=hgl_align2(ext.width,height)*hgl_align(ext.height,height); //按全屏幕放满不一样的字符为上限
limit_count=(ext.width/height)*(ext.height/height); //按全屏幕放满不一样的字符为上限
}
if(!fs)