mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-04 03:15:59 -04:00
Removed extra pixels from Font::GetGlyphRect().
This commit is contained in:
parent
32530ae6da
commit
5bbc990307
@ -153,7 +153,7 @@ Rect Font::GetGlyphRect(Uint16 ch) const {
|
||||
int minx, maxx, miny, maxy;
|
||||
if (TTF_GlyphMetrics(font_, ch, &minx, &maxx, &miny, &maxy, nullptr) != 0)
|
||||
throw Exception("TTF_GlyphMetrics");
|
||||
return Rect(minx, miny, maxx - minx + 1, maxy - miny + 1);
|
||||
return Rect(minx, miny, maxx - minx, maxy - miny);
|
||||
}
|
||||
|
||||
int Font::GetGlyphAdvance(Uint16 ch) const {
|
||||
|
Loading…
x
Reference in New Issue
Block a user