mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 17:24:24 +02:00
Style changes after ZappoMan's comments
This commit is contained in:
parent
4fd735e28f
commit
ba0b01d028
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue