diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-21 15:37:31 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-21 15:37:31 +0200 |
commit | e8601b35b601b0ee1486dfaa12385e71b7f2b300 (patch) | |
tree | 244fc97a12ee17e28e6fc407988508bfbc06d89a /View.cpp | |
parent | fe8f7273f0efdfe319a0d3e3b2fc2847992745af (diff) |
WIP quadtree visualization scaffolding
Diffstat (limited to 'View.cpp')
-rw-r--r-- | View.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -31,7 +31,6 @@ void View::work() { continue; } if (e.type == SDL_EVENT_KEY_DOWN) { - if (e.key.repeat) continue; this->controller.ev_keydown(static_cast<KeyboardCode>(e.key.scancode)); } if (e.type == SDL_EVENT_MOUSE_BUTTON_DOWN) { @@ -93,12 +92,7 @@ void View::draw_end() { void View::fill_rect(Rectangle r, Color c) { SDL_SetRenderDrawColor(this->renderer, c.red, c.green, c.blue, 255); - SDL_FRect rect = { - .x = static_cast<float>(r.x), - .y = static_cast<float>(r.y), - .w = static_cast<float>(r.width), - .h = static_cast<float>(r.height), - }; + SDL_FRect rect = { .x = r.x, .y = r.y, .w = r.width, .h = r.height, }; SDL_RenderFillRect(this->renderer, &rect); } |