@@ -608,9 +608,8 @@ static void vfx_task_handle(void *pvParameter)
608608 uint16_t color_ctr = vfx_ctr ;
609609 float fft_amp [64 ] = {0 };
610610 const uint16_t fft_n = 128 ;
611- GDisplay * g = gdispGetDisplay (0 );
612- coord_t disp_width = gdispGGetWidth (g );
613- coord_t disp_height = gdispGGetHeight (g );
611+ coord_t disp_width = 64 ;
612+ coord_t disp_height = 8 ;
614613
615614 fft_config_t * fft_plan = fft_init (fft_n , FFT_REAL , FFT_FORWARD , NULL , NULL );
616615 while (1 ) {
@@ -683,15 +682,14 @@ static void vfx_task_handle(void *pvParameter)
683682 case 0x0E : { // 音频FFT 横排彩虹(流动)
684683 uint8_t x = 0 ;
685684 uint8_t y = 0 ;
686- uint8_t color_cnt = 0 ;
685+ uint8_t color_cnt = 0 ;
687686 uint16_t color_tmp = 0 ;
688687 uint16_t color_idx = 0 ;
689688 uint16_t color_ctr = vfx_ctr ;
690689 float fft_amp [64 ] = {0 };
691690 const uint16_t fft_n = 128 ;
692- GDisplay * g = gdispGetDisplay (0 );
693- coord_t disp_width = gdispGGetWidth (g );
694- coord_t disp_height = gdispGGetHeight (g );
691+ coord_t disp_width = 64 ;
692+ coord_t disp_height = 8 ;
695693
696694 fft_config_t * fft_plan = fft_init (fft_n , FFT_REAL , FFT_FORWARD , NULL , NULL );
697695 while (1 ) {
@@ -791,9 +789,8 @@ static void vfx_task_handle(void *pvParameter)
791789 0 , 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 ,
792790 }
793791 };
794- GDisplay * g = gdispGetDisplay (0 );
795- coord_t disp_width = gdispGGetWidth (g );
796- coord_t disp_height = gdispGGetHeight (g );
792+ coord_t disp_width = 64 ;
793+ coord_t disp_height = 8 ;
797794
798795 for (uint16_t i = 0 ; i < 64 ; i ++ ) {
799796 color_idx [i ] = i * 8 ;
0 commit comments