File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ RM := rm -rf
117
117
MKDIR := mkdir -p
118
118
119
119
__CFLAGS := -Wall -Wextra -pipe
120
- __CFLAGS += -O2 -g -pipe
120
+ __CFLAGS += -Og -g -pipe
121
121
__CFLAGS += $(CFLAGS )
122
122
123
123
uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
Original file line number Diff line number Diff line change @@ -578,9 +578,7 @@ static twin_animation_t *_twin_animation_from_gif_file(const char *path)
578
578
twin_pointer_t p = twin_pixmap_pointer (anim -> frames [i ], 0 , 0 );
579
579
twin_coord_t row = 0 , col = 0 ;
580
580
for (int j = 0 ; j < gif -> width * gif -> height ; j ++ ) {
581
- uint8_t r = * (color ++ );
582
- uint8_t g = * (color ++ );
583
- uint8_t b = * (color ++ );
581
+ uint8_t r = color [0 ], g = color [1 ], b = color [2 ];
584
582
if (!gif_is_bgcolor (gif , color ))
585
583
* (p .argb32 ++ ) = 0xFF000000U | (r << 16 ) | (g << 8 ) | b ;
586
584
/* Construct background */
@@ -593,6 +591,8 @@ static twin_animation_t *_twin_animation_from_gif_file(const char *path)
593
591
row ++ ;
594
592
col = 0 ;
595
593
}
594
+ /* next palette */
595
+ color += 3 ;
596
596
}
597
597
/* GIF delay in units of 1/100 second */
598
598
anim -> frame_delays [i ] = gif -> gce .delay * 10 ;
You can’t perform that action at this time.
0 commit comments