File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -1249,13 +1249,13 @@ static void vfx_task(void *pvParameter)
12491249 for (uint8_t i = 0 ; i < 8 ; i ++ ) {
12501250 vfx_draw_layer_bitmap (i , vfx_bitmap_line [frame_idx ], vfx .lightness );
12511251
1252- if (++ frame_idx == 28 ) {
1253- frame_idx = 0 ;
1252+ if (frame_idx -- == 0 ) {
1253+ frame_idx = 27 ;
12541254 }
12551255 }
12561256
1257- if (++ frame_pre == 28 ) {
1258- frame_idx = 0 ;
1257+ if (frame_pre -- == 0 ) {
1258+ frame_idx = 27 ;
12591259 } else {
12601260 frame_idx = frame_pre ;
12611261 }
@@ -1284,13 +1284,13 @@ static void vfx_task(void *pvParameter)
12841284 for (uint8_t i = 0 ; i < 8 ; i ++ ) {
12851285 vfx_draw_layer_bitmap (i , vfx_bitmap_line [frame_idx ], vfx .lightness );
12861286
1287- if (frame_idx -- == 0 ) {
1288- frame_idx = 27 ;
1287+ if (++ frame_idx == 28 ) {
1288+ frame_idx = 0 ;
12891289 }
12901290 }
12911291
1292- if (frame_pre -- == 0 ) {
1293- frame_idx = 27 ;
1292+ if (++ frame_pre == 28 ) {
1293+ frame_idx = 0 ;
12941294 } else {
12951295 frame_idx = frame_pre ;
12961296 }
You can’t perform that action at this time.
0 commit comments