Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GorgonMeducer committed Jan 8, 2025
1 parent 714bfcc commit d64a981
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
4 changes: 2 additions & 2 deletions ARM.Arm-2D.pdsc
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@
</RTE_Components_h>
</component>

<component Cclass="Acceleration" Cgroup="Arm-2D Extras" Csub="Controls" Cversion="2.3.0" condition="Arm-2D-Controls">
<component Cclass="Acceleration" Cgroup="Arm-2D Extras" Csub="Controls" Cversion="2.3.1" condition="Arm-2D-Controls">
<description>A set of example controls, e.g. round-corner-box, spinning-wheels etc</description>
<files>
<!-- example control source files -->
Expand Down Expand Up @@ -565,7 +565,7 @@
</RTE_Components_h>
</component>

<component Cclass="Acceleration" Cgroup="Arm-2D Extras" Csub="Benchmark-WatchPanel" Cversion="1.5.0" condition="Arm-2D-Benchmark-WatchPanel">
<component Cclass="Acceleration" Cgroup="Arm-2D Extras" Csub="Benchmark-WatchPanel" Cversion="1.5.1" condition="Arm-2D-Benchmark-WatchPanel">
<description>A watch-panel benchmark for arm-2d.</description>
<files>
<file category="include" name="examples/common/benchmark/" />
Expand Down
2 changes: 1 addition & 1 deletion examples/common/benchmark/benchmark_watch_panel.c
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ void benchmark_watch_panel_draw(const arm_2d_tile_t *ptTile, bool bIsNewFrame)

progress_bar_flowing_show( ptTile,
&__bottom_centre_region,
0,
-1,
bIsNewFrame,
GLCD_COLOR_BLACK,
__RGB(0x92, 0xD0, 0x50),
Expand Down
11 changes: 2 additions & 9 deletions examples/common/controls/progress_bar_flowing.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,22 +147,15 @@ void __progress_bar_flowing_show( const arm_2d_tile_t *ptTarget,
}

//! draw a white box
arm_2d_fill_colour( ptTarget,
&tBarRegion,
//__RGB(0xa5, 0xc6, 0xef)/*0xA63D*/
tBoarderColour);

arm_2d_helper_draw_box(ptTarget, &tBarRegion, 1, tBoarderColour, 255);

ARM_2D_OP_WAIT_ASYNC();

//! pave inter texture
tBarRegion.tSize.iHeight-=2;
tBarRegion.tSize.iWidth-=2;
tBarRegion.tLocation.iX += 1;
tBarRegion.tLocation.iY += 1;

arm_2d_fill_colour(ptTarget, &tBarRegion, GLCD_COLOR_WHITE);

ARM_2D_OP_WAIT_ASYNC();

if (iProgress >= 0) {
//! calculate the width of the inner stripe
Expand Down

0 comments on commit d64a981

Please sign in to comment.