aboutsummaryrefslogtreecommitdiff
path: root/ViewController.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-13 15:21:23 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-13 15:21:23 +0200
commit108a6216a987edaa68c8739468069f4e1fc6f60c (patch)
tree8f074e59a8a4a7a365f275373d86c693f60b612b /ViewController.cpp
parent165c1ae6e4a4eea35d7ea2f2a6518ff36cf0112f (diff)
more WIP
Diffstat (limited to 'ViewController.cpp')
-rw-r--r--ViewController.cpp6
1 files changed, 3 insertions, 3 deletions
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<unsigned int>(artist.data.x * scale - ((float) artist_size / 2)),
- .y = static_cast<unsigned int>(artist.data.y * scale - ((float) artist_size / 2)),
+ .x = static_cast<unsigned int>(artist.data.x * scale),
+ .y = static_cast<unsigned int>(artist.data.y * scale),
.width = artist_size,
.height = artist_size,
};
- view.draw_rect(rect, { 0, 0, 0 });
+ view.draw_rect(rect, artist.color);
}
}