Change w and h arguments of text_get_width_height() from int to uint16.
Use text_get_width_height() in tooltip code.
Fix tooltips not working correctly in player doll widget.