diff options
Diffstat (limited to 'linden/indra/newview/llworldmapview.cpp')
-rw-r--r-- | linden/indra/newview/llworldmapview.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/linden/indra/newview/llworldmapview.cpp b/linden/indra/newview/llworldmapview.cpp index 443ee74..8d9ed1b 100644 --- a/linden/indra/newview/llworldmapview.cpp +++ b/linden/indra/newview/llworldmapview.cpp | |||
@@ -471,8 +471,8 @@ void LLWorldMapView::draw() | |||
471 | // When the view isn't panned, 0,0 = center of rectangle | 471 | // When the view isn't panned, 0,0 = center of rectangle |
472 | F32 bottom = sPanY + half_height + relative_y; | 472 | F32 bottom = sPanY + half_height + relative_y; |
473 | F32 left = sPanX + half_width + relative_x; | 473 | F32 left = sPanX + half_width + relative_x; |
474 | F32 top = bottom + sMapScale ; | 474 | F32 top = bottom+ (sMapScale * info->msizeY / REGION_WIDTH_METERS); |
475 | F32 right = left + sMapScale ; | 475 | F32 right = left + (sMapScale * info->msizeY / REGION_WIDTH_METERS); |
476 | 476 | ||
477 | // Switch to world map texture (if available for this region) if either: | 477 | // Switch to world map texture (if available for this region) if either: |
478 | // 1. Tiles are zoomed out small enough, or | 478 | // 1. Tiles are zoomed out small enough, or |
@@ -567,17 +567,21 @@ void LLWorldMapView::draw() | |||
567 | center_global.mdV[VX] += 128.0; | 567 | center_global.mdV[VX] += 128.0; |
568 | center_global.mdV[VY] += 128.0; | 568 | center_global.mdV[VY] += 128.0; |
569 | 569 | ||
570 | S32 draw_size = llround(sMapScale); | 570 | S32 x_draw_size = llround(sMapScale); |
571 | S32 y_draw_size = llround(sMapScale); | ||
572 | x_draw_size *= info->msizeX / REGION_WIDTH_METERS; | ||
573 | y_draw_size *= info->msizeY / REGION_WIDTH_METERS; | ||
574 | |||
571 | if (simimage != NULL) | 575 | if (simimage != NULL) |
572 | { | 576 | { |
573 | simimage->setBoostLevel(LLViewerImageBoostLevel::BOOST_MAP); | 577 | simimage->setBoostLevel(LLViewerImageBoostLevel::BOOST_MAP); |
574 | simimage->setKnownDrawSize(llround(draw_size * LLUI::sGLScaleFactor.mV[VX]), llround(draw_size * LLUI::sGLScaleFactor.mV[VY])); | 578 | simimage->setKnownDrawSize(llround(x_draw_size * LLUI::sGLScaleFactor.mV[VX]), llround(y_draw_size * LLUI::sGLScaleFactor.mV[VY])); |
575 | } | 579 | } |
576 | 580 | ||
577 | if (overlayimage != NULL) | 581 | if (overlayimage != NULL) |
578 | { | 582 | { |
579 | overlayimage->setBoostLevel(LLViewerImageBoostLevel::BOOST_MAP); | 583 | overlayimage->setBoostLevel(LLViewerImageBoostLevel::BOOST_MAP); |
580 | overlayimage->setKnownDrawSize(llround(draw_size * LLUI::sGLScaleFactor.mV[VX]), llround(draw_size * LLUI::sGLScaleFactor.mV[VY])); | 584 | overlayimage->setKnownDrawSize(llround(x_draw_size * LLUI::sGLScaleFactor.mV[VX]), llround(y_draw_size * LLUI::sGLScaleFactor.mV[VY])); |
581 | } | 585 | } |
582 | 586 | ||
583 | // LLTextureView::addDebugImage(simimage); | 587 | // LLTextureView::addDebugImage(simimage); |