Style changes after ZappoMan's comments

This commit is contained in:
Jose Carlos 2014-02-19 22:51:40 +01:00
parent 4fd735e28f
commit ba0b01d028

View file

@ -345,7 +345,7 @@ void Avatar::renderDisplayName() {
QFontMetrics metrics = textRenderer(DISPLAYNAME)->metrics(); QFontMetrics metrics = textRenderer(DISPLAYNAME)->metrics();
int bottom = -metrics.descent(), top = bottom + metrics.height(); int bottom = -metrics.descent(), top = bottom + metrics.height();
int left = -_displayNameWidth/2, right = _displayNameWidth/2; int left = -_displayNameWidth/2, right = _displayNameWidth/2;
int border = 5; const int border = 5;
bottom -= border; bottom -= border;
left -= border; left -= border;
top += border; top += border;
@ -370,7 +370,7 @@ void Avatar::renderDisplayName() {
const char* text = ba.data(); const char* text = ba.data();
glDisable(GL_POLYGON_OFFSET_FILL); glDisable(GL_POLYGON_OFFSET_FILL);
textRenderer(DISPLAYNAME)->draw(-_displayNameWidth/2.0, 0, text); textRenderer(DISPLAYNAME)->draw(-_displayNameWidth / 2, 0, text);
} }