Skip to content

Commit ec28564

Browse files
committed
Merge branch 'sdcard-icon'
2 parents f4cf087 + 668ec19 commit ec28564

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

.ci/check-tidy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ for dir in build build-build; do
5757
echo "Checking $(echo ${SOURCES} | wc -w) files with clang-tidy"
5858

5959
# The list of tidy checks must stay in sync with scripts/tidy
60-
${CLANGTIDY} -quiet -p ${dir} -checks=-*,clang-analyzer-*,-clang-analyzer-cplusplus*,bugprone-*,performance-*,portability-*,readability-*,-readability-braces-around-statements,-readability-magic-numbers,-readability-isolate-declaration,-readability-identifier-length,-readability-function-cognitive-complexity,-bugprone-reserved-identifier,-bugprone-easily-swappable-parameters,-performance-no-int-to-ptr -warnings-as-errors=* -header-filter '.*' ${SOURCES}
60+
${CLANGTIDY} -quiet -p ${dir} -checks=-*,clang-analyzer-*,-clang-analyzer-cplusplus*,bugprone-*,performance-*,portability-*,readability-*,-readability-braces-around-statements,-readability-magic-numbers,-readability-isolate-declaration,-readability-identifier-length,-readability-function-cognitive-complexity,-bugprone-reserved-identifier,-bugprone-easily-swappable-parameters,-bugprone-narrowing-conversions,-performance-no-int-to-ptr -warnings-as-errors=* -header-filter '.*' ${SOURCES}
6161
done

src/ui/components/sdcard.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ component_t* sdcard_create(
9090
screen_is_upside_down() ? RIGHT_CENTER : LEFT_CENTER,
9191
component));
9292
ui_util_add_sub_component(
93-
component, icon_button_create(bottom_slider, ICON_BUTTON_CHECK, _continue_callback));
93+
component, icon_button_create(top_slider, ICON_BUTTON_CHECK, _continue_callback));
9494

9595
return component;
9696
}

src/ui/components/ui_images.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,15 @@ void image_sdcard(bool mirror)
110110
int16_t x = mirror ? 0 : 127; // Position of base edge
111111
int16_t m = mirror ? -1 : 1;
112112
// Base edge
113-
UG_FillFrame(x - m * (4), y - h / 2, x - m * (0), y + h / 2, C_WHITE);
113+
UG_FillFrame(x - m * (4), y - m * h / 2, x - m * (0), y + m * h / 2, C_WHITE);
114114
// Front edge
115-
UG_FillFrame(x - m * (w), y - h / 2 + c, x - m * (w - 1), y + h / 2, C_WHITE);
115+
UG_FillFrame(x - m * (w), y - m * h / 2 + m * c, x - m * (w - 1), y + m * h / 2, C_WHITE);
116116
// Top edge
117-
UG_FillFrame(x - m * (0), y - h / 2, x - m * (w - c - 1), y - h / 2 - 1, C_WHITE);
117+
UG_FillFrame(x - m * (0), y - m * h / 2, x - m * (w - c - 1), y - m * h / 2 - 1, C_WHITE);
118118
// Bottom edge
119-
UG_FillFrame(x - m * (0), y + h / 2, x - m * (w), y + h / 2 - 1, C_WHITE);
119+
UG_FillFrame(x - m * (0), y + m * h / 2, x - m * (w), y + m * h / 2 - 1, C_WHITE);
120120
// Corner
121-
UG_DrawLine(x - m * (w - c), y - h / 2, x - m * (w), y - h / 2 + c, C_WHITE);
122-
UG_DrawLine(x - m * (w - c - 1), y - h / 2, x - m * (w - 1), y - h / 2 + c, C_WHITE);
121+
UG_DrawLine(x - m * (w - c), y - m * h / 2, x - m * (w), y - m * h / 2 + m * c, C_WHITE);
122+
UG_DrawLine(
123+
x - m * (w - c - 1), y - m * h / 2, x - m * (w - 1), y - m * h / 2 + m * c, C_WHITE);
123124
}

0 commit comments

Comments
 (0)