Fixed warning

This commit is contained in:
Robert Osfield
2009-02-03 11:07:13 +00:00
parent 1f3551820b
commit b51adc6f24

View File

@@ -165,8 +165,11 @@ bool Input::keyDown(int key, int mask, WindowManager*) {
void Input::setCursor(Widget*) {
}
unsigned int Input::calculateBestYOffset(const std::string& s) {
const osgText::FontResolution fr(_text->getCharacterHeight(), _text->getCharacterHeight());
unsigned int Input::calculateBestYOffset(const std::string& s)
{
const osgText::FontResolution fr(static_cast<unsigned int>(_text->getCharacterHeight()),
static_cast<unsigned int>(_text->getCharacterHeight()));
osgText::String utf(s);