diff options
| author | raysan5 <raysan5@gmail.com> | 2016-08-07 13:51:01 +0200 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2016-08-07 13:51:01 +0200 |
| commit | 7fbd821727228396e03f47786a4db27f00aaebba (patch) | |
| tree | a04606ec179e41f428a5a006d171d7862074c895 /examples/textures_raw_data.lua | |
| parent | f69f930b51d64d8f1dff5cb4d6c810b4a5e7335a (diff) | |
| download | raylib-7fbd821727228396e03f47786a4db27f00aaebba.tar.gz raylib-7fbd821727228396e03f47786a4db27f00aaebba.zip | |
Some code review tweaks
Diffstat (limited to 'examples/textures_raw_data.lua')
| -rw-r--r-- | examples/textures_raw_data.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/textures_raw_data.lua b/examples/textures_raw_data.lua index 8a955adf..0bad1771 100644 --- a/examples/textures_raw_data.lua +++ b/examples/textures_raw_data.lua @@ -36,8 +36,8 @@ local pixels = {} for y = 1, height do for x = 1, width do - if ((((x - 1)/32+(y - 1)//32)//1)%2 == 0) then pixels[y*height + x] = DARKBLUE - else pixels[y*height + x] = SKYBLUE end + if ((((x - 1)/32+(y - 1)//32)//1)%2 == 0) then pixels[(y - 1)*height + x] = DARKBLUE + else pixels[(y - 1)*height + x] = SKYBLUE end end end |
