File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -491,11 +491,11 @@ INLINE REBCNT ARGB_To_BGR(REBCNT i)
491
491
if (indented ) Append_Byte (mold -> series , '\n' );
492
492
Append_Bytes (mold -> series , "} #{" );
493
493
494
- up = Prep_Uni_Series (mold , (size * 2 ) + (size / 10 ) + 1 );
494
+ up = Prep_Uni_Series (mold , indented ? (size * 2 ) + (size / 10 ) + 1 : size * 2 );
495
495
496
496
data = (REBCNT * )VAL_IMAGE_DATA (value );
497
497
for (len = 0 ; len < size ; len ++ ) {
498
- if ((len % 10 ) == 0 ) * up ++ = LF ;
498
+ if (indented && (len % 10 ) == 0 ) * up ++ = LF ;
499
499
up = Form_Hex2_Uni (up , * data ++ >> 24 );
500
500
}
501
501
}
Original file line number Diff line number Diff line change @@ -295,7 +295,8 @@ Rebol [
295
295
;@@ https://github.com/rebol/rebol-issues/issues/2389
296
296
--assert (mold /flat make image! 8x1 ) = {make image! [8x1 #{FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF} ]}
297
297
--assert (mold /flat make image! 8x2 ) = {make image! [8x2 #{FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF} ]}
298
-
298
+ --assert (mold /flat make image! [1x1 0.0.0.66]) = {make image! [1x1 #{000000} #{42} ]}
299
+
299
300
--test-- "mold/flat/all image!"
300
301
--assert (mold /all/flat make image! 8x1 ) = {#[image! 8x1 #{FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF} ]}
301
302
--assert (mold /all/flat next make image! 8x1 ) = {#[image! 8x1 #{FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF} 2]}
You can’t perform that action at this time.
0 commit comments