STORM-281 : Fix Map FOV frustum when UI size not equal to 1
parent
04425000ae
commit
e44b548704
|
|
@ -381,6 +381,8 @@ Malwina Dollinger
|
|||
CT-138
|
||||
march Korda
|
||||
SVC-1020
|
||||
Marine Kelley
|
||||
STORM-281
|
||||
Matthew Dowd
|
||||
VWR-1344
|
||||
VWR-1651
|
||||
|
|
|
|||
|
|
@ -880,8 +880,10 @@ void LLWorldMapView::drawFrustum()
|
|||
F32 half_width_meters = far_clip_meters * tan( horiz_fov / 2 );
|
||||
F32 half_width_pixels = half_width_meters * meters_to_pixels;
|
||||
|
||||
F32 ctr_x = getLocalRect().getWidth() * 0.5f + sPanX;
|
||||
F32 ctr_y = getLocalRect().getHeight() * 0.5f + sPanY;
|
||||
// Compute the frustum coordinates. Take the UI scale into account.
|
||||
F32 ui_scale_factor = gSavedSettings.getF32("UIScaleFactor");
|
||||
F32 ctr_x = (getLocalRect().getWidth() * 0.5f + sPanX) * ui_scale_factor;
|
||||
F32 ctr_y = (getLocalRect().getHeight() * 0.5f + sPanY) * ui_scale_factor;
|
||||
|
||||
gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue