Skip to content
Snippets Groups Projects
Commit f3a42d07 authored by ruslantproductengine's avatar ruslantproductengine
Browse files

SL-9984 - [Retina] Camera frustum, do not display correctly on "WORLD MAP" window.

parent eaeb8605
No related branches found
No related tags found
No related merge requests found
...@@ -884,8 +884,8 @@ void LLWorldMapView::drawFrustum() ...@@ -884,8 +884,8 @@ void LLWorldMapView::drawFrustum()
// Compute the frustum coordinates. Take the UI scale into account. // Compute the frustum coordinates. Take the UI scale into account.
F32 ui_scale_factor = gSavedSettings.getF32("UIScaleFactor"); F32 ui_scale_factor = gSavedSettings.getF32("UIScaleFactor");
F32 ctr_x = (getLocalRect().getWidth() * 0.5f + sPanX) * ui_scale_factor; F32 ctr_x = ((getLocalRect().getWidth() * 0.5f + sPanX) * ui_scale_factor) * LLUI::getScaleFactor().mV[VX];
F32 ctr_y = (getLocalRect().getHeight() * 0.5f + sPanY) * ui_scale_factor; F32 ctr_y = ((getLocalRect().getHeight() * 0.5f + sPanY) * ui_scale_factor) * LLUI::getScaleFactor().mV[VY];
gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE); gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment