TSAGE: Implemented Y pixel difference in button text

This commit is contained in:
Paul Gilbert 2011-06-04 19:18:47 +10:00
parent 10c308f557
commit 4b95cf5d1a

View file

@ -837,6 +837,8 @@ void GfxButton::draw() {
// Display the button's text // Display the button's text
Rect tempRect(_bounds); Rect tempRect(_bounds);
tempRect.collapse(_globals->_gfxEdgeAdjust, _globals->_gfxEdgeAdjust); tempRect.collapse(_globals->_gfxEdgeAdjust, _globals->_gfxEdgeAdjust);
if (_vm->getFeatures() & GF_CD)
++tempRect.top;
gfxManager._font.writeLines(_message.c_str(), tempRect, ALIGN_CENTER); gfxManager._font.writeLines(_message.c_str(), tempRect, ALIGN_CENTER);
gfxManager.unlockSurface(); gfxManager.unlockSurface();