Skip to content

Commit

Permalink
Show boost clocks in yellow
Browse files Browse the repository at this point in the history
  • Loading branch information
KWottrich committed Oct 18, 2021
1 parent f1277a7 commit b0b5642
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion overlay/src/ui/gui/base_menu_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,14 @@ void BaseMenuGui::preDraw(tsl::gfx::Renderer* renderer)
{
std::uint32_t hz = this->context->freqs[freqOffsets[i].m];
snprintf(buf, sizeof(buf), "%u.%u Mhz", hz / 1000000, hz / 100000 - hz / 1000000 * 10);
renderer->drawString(buf, false, freqOffsets[i].x, 115, SMALL_TEXT_SIZE, VALUE_COLOR);
if (this->context->boostModeActive && i != SysClkModule_MEM)
{
renderer->drawString(buf, false, freqOffsets[i].x, 115, SMALL_TEXT_SIZE, BOOST_VALUE_COLOR);
}
else
{
renderer->drawString(buf, false, freqOffsets[i].x, 115, SMALL_TEXT_SIZE, VALUE_COLOR);
}
}
renderer->drawString("CPU:", false, 20, 115, SMALL_TEXT_SIZE, DESC_COLOR);
renderer->drawString("GPU:", false, 162, 115, SMALL_TEXT_SIZE, DESC_COLOR);
Expand Down
1 change: 1 addition & 0 deletions overlay/src/ui/style.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#define TEXT_COLOR tsl::gfx::Renderer::a(0xFFFF)
#define DESC_COLOR tsl::gfx::Renderer::a({ 0xC, 0xC, 0xC, 0xF })
#define VALUE_COLOR tsl::gfx::Renderer::a({ 0x5, 0xC, 0xA, 0xF })
#define BOOST_VALUE_COLOR tsl::gfx::Renderer::a({ 0xE, 0xE, 0x5, 0xF })
#define SMALL_TEXT_SIZE 15
#define LABEL_SPACING 7
#define LABEL_FONT_SIZE 15

0 comments on commit b0b5642

Please sign in to comment.