From 3d0f3f38d9d8345b6508b3289dc94b0500c53d9e Mon Sep 17 00:00:00 2001 From: Cliff Click Date: Sat, 14 Nov 2026 12:41:16 -0800 Subject: Breakout, Clock demos Math lib with simple constants raw bit converters TypeConAry unified Big Formatting change Debug symbols for constant data IterPeeps was endlessly running asserts with much inlining RegAlloc rounds raised --- chapter31/docs/examples/Graphics.smp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chapter31/docs/examples/Graphics.smp') diff --git a/chapter31/docs/examples/Graphics.smp b/chapter31/docs/examples/Graphics.smp index 7ba5c6e7..8b251fa2 100644 --- a/chapter31/docs/examples/Graphics.smp +++ b/chapter31/docs/examples/Graphics.smp @@ -3,8 +3,8 @@ val main = { u8[~][] args -> if( sys.gfx.open("Simple pixels",320,240) != sys.gfx.OK ) return 1; val pixels = new u32[320*240]; - for( int y=0; y<240; y++ ) - for( int x=0; x<320; x++ ) + for( int y = 0; y < 240; y++ ) + for( int x = 0; x < 320; x++ ) pixels[y*320+x] = (x*255/319 << 16) | (y*255/239 << 8) | 64; int result = sys.gfx.present(pixels); int frames = 0; -- cgit v1.2.3