mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 23:55:38 +00:00
Fixed a small font offset problem mostly seen at really low resolutions.
This commit is contained in:
parent
cbea006a70
commit
2fd5580e13
|
@ -154,7 +154,7 @@ TextCache* Font::buildTextCache(const std::string& text,
|
||||||
yBot = getHeight(lineSpacing);
|
yBot = getHeight(lineSpacing);
|
||||||
}
|
}
|
||||||
|
|
||||||
float y {offset[1] + (yBot + yTop) / 2.0f};
|
float y {std::round(offset[1] + (yBot + yTop) / 2.0f)};
|
||||||
|
|
||||||
// Vertices by texture.
|
// Vertices by texture.
|
||||||
std::map<FontTexture*, std::vector<Renderer::Vertex>> vertMap;
|
std::map<FontTexture*, std::vector<Renderer::Vertex>> vertMap;
|
||||||
|
|
Loading…
Reference in a new issue