Skip to content

Commit

Permalink
XXX Show 16 bit status in Logo scene
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghabry committed Aug 29, 2024
1 parent 5a6f00b commit c5fbfd1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/scene_logo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,13 @@ void Scene_Logo::DrawTextOnLogo(bool verbose) {
Color shadow_color = {69, 69, 69, 255};
logo_img->ClearRect(text_rect);

std::string bitness;
if (logo_img->bpp() == 2) {
bitness = " @ 16 bit";
}

for (auto& color: {shadow_color, text_color}) {
logo_img->TextDraw(text_rect, color, "v" + Version::GetVersionString(verbose, verbose), Text::AlignLeft);
logo_img->TextDraw(text_rect, color, "v" + Version::GetVersionString(verbose, verbose) + bitness, Text::AlignLeft);
if (!verbose) {
logo_img->TextDraw(text_rect, color, WEBSITE_ADDRESS, Text::AlignRight);
}
Expand Down

0 comments on commit c5fbfd1

Please sign in to comment.