mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 14:03:55 +02:00
Using the correct scaling factor for the avatar display name call. CHanged the scale coming from the widget.devicePixelRatio to the actual RenderResolutionScale we assign in the Application
This commit is contained in:
parent
113fb1908a
commit
e7af0cbe7f
2 changed files with 3 additions and 1 deletions
|
@ -303,6 +303,8 @@ public:
|
|||
|
||||
bool isLookingAtMyAvatar(Avatar* avatar);
|
||||
|
||||
float getRenderResolutionScale() const { return _renderResolutionScale; }
|
||||
|
||||
signals:
|
||||
|
||||
/// Fired when we're simulating; allows external parties to hook in.
|
||||
|
|
|
@ -694,7 +694,7 @@ void Avatar::renderDisplayName() {
|
|||
|
||||
if (success) {
|
||||
double textWindowHeight = abs(result1[1] - result0[1]);
|
||||
float scaleFactor = QApplication::desktop()->windowHandle()->devicePixelRatio() *
|
||||
float scaleFactor = Application::getInstance()->getRenderResolutionScale() *
|
||||
((textWindowHeight > EPSILON) ? 1.0f / textWindowHeight : 1.0f);
|
||||
glScalef(scaleFactor, scaleFactor, 1.0);
|
||||
|
||||
|
|
Loading…
Reference in a new issue