summaryrefslogtreecommitdiff
path: root/osframework/source/SexyAppFramework/HyperlinkWidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'osframework/source/SexyAppFramework/HyperlinkWidget.cpp')
-rw-r--r--osframework/source/SexyAppFramework/HyperlinkWidget.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/osframework/source/SexyAppFramework/HyperlinkWidget.cpp b/osframework/source/SexyAppFramework/HyperlinkWidget.cpp
index 05b7e0a..3a06569 100644
--- a/osframework/source/SexyAppFramework/HyperlinkWidget.cpp
+++ b/osframework/source/SexyAppFramework/HyperlinkWidget.cpp
@@ -33,6 +33,13 @@ void HyperlinkWidget::Draw(Graphics* g)
else
g->SetColor(mColor);
+ if (mHasFocus && mIsSelected)
+ {
+ Color col = g->GetColor();
+ col.mAlpha = AlphaMod(col.mAlpha, mSelectAlpha * 255);
+ g->SetColor(col);
+ }
+
g->SetFont(mFont);
//g->DrawString(mLabel, aFontX, aFontY);
mLabelText.Draw(g, aFontX, aFontY, g->GetColor());