Skip to content

Commit faf5b34

Browse files
committed
minor update
1 parent ac40ffc commit faf5b34

20 files changed

+60881
-58
lines changed

Library/Source/arm_2d_transform.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -687,9 +687,9 @@ arm_2d_region_t *arm_2d_calculate_reference_target_region_after_transform(
687687

688688
/* calculate reference target region */
689689
do {
690-
arm_2d_region_t tTargetRegion = {
691-
.tSize = this.Target.ptTile->tRegion.tSize,
692-
};
690+
// arm_2d_region_t tTargetRegion = {
691+
// .tSize = this.Target.ptTile->tRegion.tSize,
692+
// };
693693

694694
arm_2d_region_t tReferenceRegion = {
695695
.tSize = tTransformedSourceSize,

examples/[template][bare-metal][cortex-m85]/main.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,11 @@ void scene_knob_loader(void)
294294
arm_2d_scene_knob_init(&DISP0_ADAPTER);
295295
}
296296

297+
void scene_flight_attitude_instrument_loader(void)
298+
{
299+
arm_2d_scene_flight_attitude_instrument_init(&DISP0_ADAPTER);
300+
}
301+
297302
#if __GLCD_CFG_COLOUR_DEPTH__ == 16
298303
void scene_user_defined_opcode_loader(void)
299304
{
@@ -387,7 +392,7 @@ typedef struct demo_scene_t {
387392

388393
static demo_scene_t const c_SceneLoaders[] = {
389394

390-
#if 1
395+
#if 0
391396

392397
#if defined(__DISP0_CFG_COLOR_SOLUTION__) && __DISP0_CFG_COLOR_SOLUTION__ == 1
393398
{
@@ -548,7 +553,8 @@ static demo_scene_t const c_SceneLoaders[] = {
548553
#else
549554
{
550555
.fnLoader =
551-
scene_transform_loader,
556+
scene_flight_attitude_instrument_loader,
557+
//scene_transform_loader,
552558
//scene_listview_loader,
553559
//scene_mono_tracking_list_loader
554560
//scene_mono_list_loader,

examples/[template][bare-metal][cortex-m85]/project/mdk/RTE/Acceleration/arm_2d_cfg.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,13 @@ extern "C" {
198198
// <i> Ignore the user application code when a PFB is output of the areas that generated with the layout assistant. Enabling this feature can improve the user application performance. This feature is disabled by default. It is recommended when you trys to optimize the application performance.
199199
// <i> If you see some visual elements are imcomplete, you can choose those layout assistants with "_open" as posfix in corresonding area. For example, arm_2d_align_centre() can be changed to arm_2d_align_centre_open().
200200
#ifndef __ARM_2D_CFG_OPTIMIZE_FOR_PFB_IN_LAYOUT_ASSISTANT__
201-
# define __ARM_2D_CFG_OPTIMIZE_FOR_PFB_IN_LAYOUT_ASSISTANT__ 0
201+
# define __ARM_2D_CFG_OPTIMIZE_FOR_PFB_IN_LAYOUT_ASSISTANT__ 1
202+
#endif
203+
204+
// <q> Force to disable Anti-Alias in Fill-colour-with-transformed-mask-and-opacity.
205+
// <i> This feature is disabled by default. You can disable it to improve performance as long as the rendering is good enough.
206+
#ifndef __ARM_2D_CFG_DISABLE_ANTI_ALIAS_IN_FILL_COLOUR_WITH_TRANSFORMED_MASK_AND_TARGET_MASK__
207+
# define __ARM_2D_CFG_DISABLE_ANTI_ALIAS_IN_FILL_COLOUR_WITH_TRANSFORMED_MASK_AND_TARGET_MASK__ 0
202208
#endif
203209

204210
// </h>

examples/[template][bare-metal][cortex-m85]/project/mdk/RTE/Acceleration/arm_2d_disp_adapter_0.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ extern "C" {
102102
// <o>Height of the PFB block
103103
// <i> The height of your PFB block size used in disp0
104104
#ifndef __DISP0_CFG_PFB_BLOCK_HEIGHT__
105-
# define __DISP0_CFG_PFB_BLOCK_HEIGHT__ 24
105+
# define __DISP0_CFG_PFB_BLOCK_HEIGHT__ 240
106106
#endif
107107

108108
// <o>Width Alignment of generated PFBs

0 commit comments

Comments
 (0)