mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 15:45:38 +00:00
Fixed an issue where the texture buffer sometimes couldn't fit Chinese characters.
This commit is contained in:
parent
7a1474204c
commit
53ad5a3152
|
@ -156,10 +156,10 @@ Font::FontTexture::FontTexture(const int mSize)
|
||||||
if (screenSizeModifier < 0.45f)
|
if (screenSizeModifier < 0.45f)
|
||||||
extraTextureSize += 4;
|
extraTextureSize += 4;
|
||||||
|
|
||||||
// It's not entirely clear if the 20 and 8 constants are correct, but they seem to provide
|
// It's not entirely clear if the 20 and 16 constants are correct, but they seem to provide
|
||||||
// a texture buffer large enough to hold the fonts. This logic is obviously a hack though
|
// a texture buffer large enough to hold the fonts. This logic is obviously a hack though
|
||||||
// and needs to be properly reviewed and improved.
|
// and needs to be properly reviewed and improved.
|
||||||
textureSize = glm::ivec2 {mSize * (20 + extraTextureSize), mSize * (8 + extraTextureSize / 2)};
|
textureSize = glm::ivec2 {mSize * (20 + extraTextureSize), mSize * (16 + extraTextureSize / 2)};
|
||||||
|
|
||||||
// Make sure the size is not unreasonably large (which may be caused by a mistake in the
|
// Make sure the size is not unreasonably large (which may be caused by a mistake in the
|
||||||
// theme configuration).
|
// theme configuration).
|
||||||
|
|
Loading…
Reference in a new issue