Skip to content

Commit 886664f

Browse files
committed
vfx: use gdispGClear() to clear display
1 parent 761a5a2 commit 886664f

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

main/src/user/vfx.c

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ static void vfx_task(void *pvParameter)
116116

117117
xEventGroupClearBits(user_event_group, VFX_FFT_NULL_BIT);
118118

119-
gdispGFillArea(vfx_gdisp, 0, 0, vfx_disp_width, vfx_disp_height, 0x000000);
119+
gdispGClear(vfx_gdisp, 0x000000);
120120

121121
gdispGSetBacklight(vfx_gdisp, vfx.backlight);
122122

@@ -216,7 +216,7 @@ static void vfx_task(void *pvParameter)
216216

217217
xEventGroupClearBits(user_event_group, VFX_FFT_NULL_BIT);
218218

219-
gdispGFillArea(vfx_gdisp, 0, 0, vfx_disp_width, vfx_disp_height, 0x000000);
219+
gdispGClear(vfx_gdisp, 0x000000);
220220

221221
gdispGSetBacklight(vfx_gdisp, vfx.backlight);
222222

@@ -332,7 +332,7 @@ static void vfx_task(void *pvParameter)
332332

333333
xEventGroupClearBits(user_event_group, VFX_FFT_NULL_BIT);
334334

335-
gdispGFillArea(vfx_gdisp, 0, 0, vfx_disp_width, vfx_disp_height, 0x000000);
335+
gdispGClear(vfx_gdisp, 0x000000);
336336

337337
gdispGSetBacklight(vfx_gdisp, vfx.backlight);
338338

@@ -442,7 +442,7 @@ static void vfx_task(void *pvParameter)
442442

443443
xEventGroupClearBits(user_event_group, VFX_FFT_NULL_BIT);
444444

445-
gdispGFillArea(vfx_gdisp, 0, 0, vfx_disp_width, vfx_disp_height, 0x000000);
445+
gdispGClear(vfx_gdisp, 0x000000);
446446

447447
gdispGSetBacklight(vfx_gdisp, vfx.backlight);
448448

@@ -546,7 +546,7 @@ static void vfx_task(void *pvParameter)
546546

547547
xEventGroupClearBits(user_event_group, VFX_FFT_NULL_BIT);
548548

549-
gdispGFillArea(vfx_gdisp, 0, 0, vfx_disp_width, vfx_disp_height, 0x000000);
549+
gdispGClear(vfx_gdisp, 0x000000);
550550

551551
gdispGSetBacklight(vfx_gdisp, vfx.backlight);
552552

@@ -665,7 +665,7 @@ static void vfx_task(void *pvParameter)
665665

666666
xEventGroupClearBits(user_event_group, VFX_FFT_NULL_BIT);
667667

668-
gdispGFillArea(vfx_gdisp, 0, 0, vfx_disp_width, vfx_disp_height, 0x000000);
668+
gdispGClear(vfx_gdisp, 0x000000);
669669

670670
gdispGSetBacklight(vfx_gdisp, vfx.backlight);
671671

@@ -923,7 +923,7 @@ static void vfx_task(void *pvParameter)
923923
uint16_t color_h[512] = {0};
924924
float color_l = vfx.lightness / 256.0;
925925

926-
gdispGFillArea(vfx_gdisp, 0, 0, vfx_disp_width, vfx_disp_height, 0x000000);
926+
gdispGClear(vfx_gdisp, 0x000000);
927927

928928
gdispGSetBacklight(vfx_gdisp, vfx.backlight);
929929

@@ -988,7 +988,7 @@ static void vfx_task(void *pvParameter)
988988
uint16_t color_h[512] = {0};
989989
float color_l = vfx.lightness / 256.0;
990990

991-
gdispGFillArea(vfx_gdisp, 0, 0, vfx_disp_width, vfx_disp_height, 0x000000);
991+
gdispGClear(vfx_gdisp, 0x000000);
992992

993993
gdispGSetBacklight(vfx_gdisp, vfx.backlight);
994994

@@ -1053,7 +1053,7 @@ static void vfx_task(void *pvParameter)
10531053
uint16_t color_h[512] = {0};
10541054
float color_l = vfx.lightness / 256.0;
10551055

1056-
gdispGFillArea(vfx_gdisp, 0, 0, vfx_disp_width, vfx_disp_height, 0x000000);
1056+
gdispGClear(vfx_gdisp, 0x000000);
10571057

10581058
gdispGSetBacklight(vfx_gdisp, vfx.backlight);
10591059

@@ -1115,7 +1115,7 @@ static void vfx_task(void *pvParameter)
11151115
uint16_t color_h = 0;
11161116
uint16_t color_l = vfx.lightness;
11171117

1118-
gdispGFillArea(vfx_gdisp, 0, 0, vfx_disp_width, vfx_disp_height, 0x000000);
1118+
gdispGClear(vfx_gdisp, 0x000000);
11191119

11201120
gdispGSetBacklight(vfx_gdisp, vfx.backlight);
11211121

@@ -1151,7 +1151,7 @@ static void vfx_task(void *pvParameter)
11511151
uint16_t color_h = 0;
11521152
uint16_t color_l = vfx.lightness;
11531153

1154-
gdispGFillArea(vfx_gdisp, 0, 0, vfx_disp_width, vfx_disp_height, 0x000000);
1154+
gdispGClear(vfx_gdisp, 0x000000);
11551155

11561156
gdispGSetBacklight(vfx_gdisp, vfx.backlight);
11571157

@@ -1207,7 +1207,7 @@ static void vfx_task(void *pvParameter)
12071207
case VFX_MODE_IDX_MAGIC_CARPET: { // 魔毯
12081208
uint16_t frame_idx = 0;
12091209

1210-
gdispGFillArea(vfx_gdisp, 0, 0, vfx_disp_width, vfx_disp_height, 0x000000);
1210+
gdispGClear(vfx_gdisp, 0x000000);
12111211

12121212
gdispGSetBacklight(vfx_gdisp, vfx.backlight);
12131213

@@ -1233,7 +1233,7 @@ static void vfx_task(void *pvParameter)
12331233
uint16_t frame_pre = 0;
12341234
uint16_t frame_idx = 0;
12351235

1236-
gdispGFillArea(vfx_gdisp, 0, 0, vfx_disp_width, vfx_disp_height, 0x000000);
1236+
gdispGClear(vfx_gdisp, 0x000000);
12371237

12381238
gdispGSetBacklight(vfx_gdisp, vfx.backlight);
12391239

@@ -1268,7 +1268,7 @@ static void vfx_task(void *pvParameter)
12681268
uint16_t frame_pre = 0;
12691269
uint16_t frame_idx = 0;
12701270

1271-
gdispGFillArea(vfx_gdisp, 0, 0, vfx_disp_width, vfx_disp_height, 0x000000);
1271+
gdispGClear(vfx_gdisp, 0x000000);
12721272

12731273
gdispGSetBacklight(vfx_gdisp, vfx.backlight);
12741274

@@ -1980,7 +1980,7 @@ static void vfx_task(void *pvParameter)
19801980

19811981
vTaskDelay(500 / portTICK_RATE_MS);
19821982

1983-
gdispGFillArea(vfx_gdisp, 0, 0, vfx_disp_width, vfx_disp_height, 0x000000);
1983+
gdispGClear(vfx_gdisp, 0x000000);
19841984

19851985
xEventGroupWaitBits(
19861986
user_event_group,

0 commit comments

Comments
 (0)