From e241e23752c8bb6e3af656b3fbc3ab549d769701 Mon Sep 17 00:00:00 2001 From: pierow Date: Thu, 14 Sep 2023 20:56:49 -0400 Subject: [PATCH] disable old tooltip border --- main/source/mod/AvHTooltip.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main/source/mod/AvHTooltip.cpp b/main/source/mod/AvHTooltip.cpp index aa8903ca..64311f8b 100644 --- a/main/source/mod/AvHTooltip.cpp +++ b/main/source/mod/AvHTooltip.cpp @@ -135,8 +135,10 @@ void AvHTooltip::Draw() float theNormalizedAlpha = (float)this->mColorA/255; int theAlphaComponent = theNormalizedAlpha*this->mBackgroundColorA; - FillRGBA(theFillStartX, theFillStartY, this->mScreenWidth, this->mScreenHeight, this->mBackgroundColorR, this->mBackgroundColorG, this->mBackgroundColorB, theAlphaComponent); - vguiSimpleBox(theFillStartX, theFillStartY, theFillStartX + this->mScreenWidth, theFillStartY + this->mScreenHeight, this->mColorR, this->mColorG, this->mColorB, theAlphaComponent); + ////Old NS 3.2 box around the text with AWFUL performance. Colors rendered wrong and the shaded background wasn't working either. + //FillRGBA(theFillStartX, theFillStartY, this->mScreenWidth, this->mScreenHeight, this->mBackgroundColorR, this->mBackgroundColorG, this->mBackgroundColorB, theAlphaComponent); + //vguiSimpleBox(theFillStartX, theFillStartY, theFillStartX + this->mScreenWidth, theFillStartY + this->mScreenHeight, this->mColorR, this->mColorG, this->mColorB, theAlphaComponent); + //New higher performance box. this->DrawBorder(theFillStartX, theFillStartY, theAlphaComponent);