From e8601b35b601b0ee1486dfaa12385e71b7f2b300 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Mon, 21 Oct 2024 15:37:31 +0200 Subject: WIP quadtree visualization scaffolding --- View.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'View.cpp') diff --git a/View.cpp b/View.cpp index 05b823c..adf719b 100644 --- a/View.cpp +++ b/View.cpp @@ -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(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(r.x), - .y = static_cast(r.y), - .w = static_cast(r.width), - .h = static_cast(r.height), - }; + SDL_FRect rect = { .x = r.x, .y = r.y, .w = r.width, .h = r.height, }; SDL_RenderFillRect(this->renderer, &rect); } -- cgit v1.2.3