From 108a6216a987edaa68c8739468069f4e1fc6f60c Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sun, 13 Oct 2024 15:21:23 +0200 Subject: more WIP --- ViewController.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ViewController.cpp') diff --git a/ViewController.cpp b/ViewController.cpp index e6ffe2e..ea84bb8 100644 --- a/ViewController.cpp +++ b/ViewController.cpp @@ -37,12 +37,12 @@ void ViewController::update_artists(View & view) { for (size_t i = 0; i < people.artists_size(); i++) { Artist & artist = people.get_artist(i); Rectangle rect = { - .x = static_cast(artist.data.x * scale - ((float) artist_size / 2)), - .y = static_cast(artist.data.y * scale - ((float) artist_size / 2)), + .x = static_cast(artist.data.x * scale), + .y = static_cast(artist.data.y * scale), .width = artist_size, .height = artist_size, }; - view.draw_rect(rect, { 0, 0, 0 }); + view.draw_rect(rect, artist.color); } } -- cgit v1.2.3