File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 392
392
rgba [C_R ] = bin [0 ];
393
393
rgba [C_G ] = bin [1 ];
394
394
rgba [C_B ] = bin [2 ];
395
- rgba [C_A ] = bin [3 ];
395
+ rgba [C_A ] = 255 - bin [3 ];
396
396
}
397
397
}
398
398
@@ -669,7 +669,6 @@ INLINE REBCNT ARGB_To_BGR(REBCNT i)
669
669
670
670
if (action == A_APPEND ) {
671
671
index = tail ;
672
- action = A_INSERT ;
673
672
}
674
673
675
674
x = index % w ; // offset on the line
@@ -758,11 +757,13 @@ INLINE REBCNT ARGB_To_BGR(REBCNT i)
758
757
}
759
758
760
759
// Expand image data if necessary:
761
- if (action == A_INSERT ) {
760
+ if (action == A_INSERT || action == A_APPEND ) {
762
761
if (index > tail ) index = tail ;
763
762
Expand_Series (VAL_SERIES (value ), index , dup * part );
764
763
CLEAR_IMAGE (VAL_BIN (value ) + (index * 4 ), dup , part );
765
764
Reset_Height (value );
765
+ if (action == A_INSERT )
766
+ VAL_INDEX (value ) = index + (dup * part ); // so it is on position after insertion
766
767
tail = VAL_TAIL (value );
767
768
only = 0 ;
768
769
}
You can’t perform that action at this time.
0 commit comments