Skip to content

Commit

Permalink
Fix UI rendering in audio source selection menu (#1519)
Browse files Browse the repository at this point in the history
Fixed white space shown around audio source selections
  • Loading branch information
seangoodvibes authored and m-m-adams committed Mar 19, 2024
1 parent 98495c1 commit 5cae67b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/deluge/gui/context_menu/context_menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@ void ContextMenu::renderOLED(uint8_t image[][OLED_MAIN_WIDTH_PIXELS]) {
if (isCurrentOptionAvailable()) {
deluge::hid::display::OLED::drawString(options[currentOption], 22, textPixelY, image[0],
OLED_MAIN_WIDTH_PIXELS, kTextSpacingX, kTextSpacingY, 0,
OLED_MAIN_WIDTH_PIXELS - 22);
OLED_MAIN_WIDTH_PIXELS - 26);
if (currentOption == actualCurrentOption) {
deluge::hid::display::OLED::invertArea(22, OLED_MAIN_WIDTH_PIXELS - 44, textPixelY, textPixelY + 8,
&image[0]);
deluge::hid::display::OLED::setupSideScroller(0, options[currentOption], 22,
OLED_MAIN_WIDTH_PIXELS - 22, textPixelY, textPixelY + 8,
OLED_MAIN_WIDTH_PIXELS - 26, textPixelY, textPixelY + 8,
kTextSpacingX, kTextSpacingY, true);
}
textPixelY += kTextSpacingY;
Expand Down

0 comments on commit 5cae67b

Please sign in to comment.