diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/lltextureview.cpp | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/linden/indra/newview/lltextureview.cpp b/linden/indra/newview/lltextureview.cpp index 09392f4..db2853e 100644 --- a/linden/indra/newview/lltextureview.cpp +++ b/linden/indra/newview/lltextureview.cpp | |||
@@ -89,9 +89,6 @@ public: | |||
89 | { | 89 | { |
90 | } | 90 | } |
91 | 91 | ||
92 | virtual EWidgetType getWidgetType() const { return WIDGET_TYPE_TEXTURE_BAR; } | ||
93 | virtual LLString getWidgetTag() const { return LL_TEXTURE_BAR_TAG; } | ||
94 | |||
95 | virtual void draw(); | 92 | virtual void draw(); |
96 | virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask); | 93 | virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask); |
97 | virtual LLRect getRequiredRect(); // Return the height of this object, given the set options. | 94 | virtual LLRect getRequiredRect(); // Return the height of this object, given the set options. |
@@ -376,9 +373,6 @@ public: | |||
376 | setRect(LLRect(0,0,100,line_height * 4)); | 373 | setRect(LLRect(0,0,100,line_height * 4)); |
377 | } | 374 | } |
378 | 375 | ||
379 | virtual EWidgetType getWidgetType() const { return WIDGET_TYPE_TEX_MEM_BAR; }; | ||
380 | virtual LLString getWidgetTag() const { return LL_GL_TEX_MEM_BAR_TAG; }; | ||
381 | |||
382 | virtual void draw(); | 376 | virtual void draw(); |
383 | virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask); | 377 | virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask); |
384 | virtual LLRect getRequiredRect(); // Return the height of this object, given the set options. | 378 | virtual LLRect getRequiredRect(); // Return the height of this object, given the set options. |
@@ -545,17 +539,6 @@ LLTextureView::~LLTextureView() | |||
545 | mGLTexMemBar = 0; | 539 | mGLTexMemBar = 0; |
546 | } | 540 | } |
547 | 541 | ||
548 | EWidgetType LLTextureView::getWidgetType() const | ||
549 | { | ||
550 | return WIDGET_TYPE_TEXTURE_VIEW; | ||
551 | } | ||
552 | |||
553 | LLString LLTextureView::getWidgetTag() const | ||
554 | { | ||
555 | return LL_TEXTURE_VIEW_TAG; | ||
556 | } | ||
557 | |||
558 | |||
559 | typedef std::pair<F32,LLViewerImage*> decode_pair_t; | 542 | typedef std::pair<F32,LLViewerImage*> decode_pair_t; |
560 | struct compare_decode_pair | 543 | struct compare_decode_pair |
561 | { | 544 | { |
@@ -637,7 +620,7 @@ void LLTextureView::draw() | |||
637 | if (!mOrderFetch) | 620 | if (!mOrderFetch) |
638 | { | 621 | { |
639 | #if 1 | 622 | #if 1 |
640 | if (pri < HIGH_PRIORITY && gSelectMgr) | 623 | if (pri < HIGH_PRIORITY && LLSelectMgr::getInstance()) |
641 | { | 624 | { |
642 | struct f : public LLSelectedTEFunctor | 625 | struct f : public LLSelectedTEFunctor |
643 | { | 626 | { |
@@ -649,7 +632,7 @@ void LLTextureView::draw() | |||
649 | } | 632 | } |
650 | } func(imagep); | 633 | } func(imagep); |
651 | const bool firstonly = true; | 634 | const bool firstonly = true; |
652 | bool match = gSelectMgr->getSelection()->applyToTEs(&func, firstonly); | 635 | bool match = LLSelectMgr::getInstance()->getSelection()->applyToTEs(&func, firstonly); |
653 | if (match) | 636 | if (match) |
654 | { | 637 | { |
655 | pri += 3*HIGH_PRIORITY; | 638 | pri += 3*HIGH_PRIORITY; |