mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
GLK: Fix placement of input cursor
This commit is contained in:
committed by
Paul Gilbert
parent
e9c7b30246
commit
012d4bafbb
@@ -119,13 +119,13 @@ int Fonts::drawStringUni(const Point &pos, int fontIdx, const byte *rgb, const C
|
||||
size_t Fonts::stringWidth(int fontIdx, const Common::String &text, int spw) {
|
||||
// TODO: Handle spw
|
||||
Graphics::Font *font = _fontTable[fontIdx];
|
||||
return font->getStringWidth(text);
|
||||
return font->getStringWidth(text) * GLI_SUBPIX;
|
||||
}
|
||||
|
||||
size_t Fonts::stringWidthUni(int fontIdx, const Common::U32String &text, int spw) {
|
||||
// TODO: Handle spw
|
||||
Graphics::Font *font = _fontTable[fontIdx];
|
||||
return font->getStringWidth(text);
|
||||
return font->getStringWidth(text) * GLI_SUBPIX;
|
||||
}
|
||||
|
||||
} // End of namespace Gargoyle
|
||||
|
||||
@@ -84,6 +84,7 @@ public:
|
||||
* @param fontIdx Which font to use
|
||||
* @param text Text to get the width of
|
||||
* @param spw ???
|
||||
* @returns Width of string multiplied by GLI_SUBPIX
|
||||
*/
|
||||
size_t stringWidth(int fontIdx, const Common::String &text, int spw = -1);
|
||||
|
||||
@@ -92,6 +93,7 @@ public:
|
||||
* @param fontIdx Which font to use
|
||||
* @param text Text to get the width of
|
||||
* @param spw ???
|
||||
* @returns Width of string multiplied by GLI_SUBPIX
|
||||
*/
|
||||
size_t stringWidthUni(int fontIdx, const Common::U32String &text, int spw = -1);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user