From 142a370cba076a7cf593c7a48b5414e992311a20 Mon Sep 17 00:00:00 2001 From: ladevieq Date: Thu, 21 Jan 2021 20:38:09 +0100 Subject: Setup xkb --- src/utils.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/utils.cpp') diff --git a/src/utils.cpp b/src/utils.cpp index f0849b7..1c6fac1 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -42,8 +42,9 @@ void random_scene(sphere *world) { uint32_t world_sphere_index = 1; - for (int a = -11; a < 11; a++) { - for (int b = -11; b < 11; b++) { + int32_t spheres_count = 11; + for (int a = -spheres_count; a < spheres_count; a++) { + for (int b = -spheres_count; b < spheres_count; b++) { auto choose_mat = randd(); point3 center(a + 0.9 * randd(), 0.2, b + 0.9 * randd()); -- cgit v1.3