From a33eb60e76b3c333bf50b7183e1e6a078b6cdc27 Mon Sep 17 00:00:00 2001 From: sekelsenmat Date: Sun, 27 May 2007 07:37:20 +0000 Subject: Fixed image showing on Gfx --- examples/gfx/imgtest/imgtest.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/gfx') diff --git a/examples/gfx/imgtest/imgtest.pas b/examples/gfx/imgtest/imgtest.pas index a02eb72e..06b5b3f3 100644 --- a/examples/gfx/imgtest/imgtest.pas +++ b/examples/gfx/imgtest/imgtest.pas @@ -56,7 +56,7 @@ begin Bitmap.Lock(Data, Stride); for j := 0 to 255 do for i := 0 to 255 do - PLongWord(Data)[j * 256 + i] := (i shl 8) or (j shl 0); + PLongWord(Data)[j * 256 + i] := (i shl 16) or (j shl 8); Bitmap.Unlock; end; -- cgit v1.2.3-70-g09d2