From 8bedf8a366cb6c1179bc89678c863517b9356d48 Mon Sep 17 00:00:00 2001 From: Frederico Linhares Date: Sat, 21 Jun 2025 16:51:22 -0300 Subject: refa Remove View2D View2D is almost useless and add too much complexity for the engine, so I am removing it. --- src/blu_cat/int/core.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/blu_cat/int') diff --git a/src/blu_cat/int/core.cpp b/src/blu_cat/int/core.cpp index d631d17..7e78b89 100644 --- a/src/blu_cat/int/core.cpp +++ b/src/blu_cat/int/core.cpp @@ -692,13 +692,13 @@ load_renderer(void *obj) { try { + auto width{static_cast(BluCat::INT::core.display_width)}; + auto height{static_cast(BluCat::INT::core.display_height)}; glm::vec4 region( - 0.f, 0.f, - static_cast(BluCat::INT::core.display_width), - static_cast(BluCat::INT::core.display_height)); + 0.f, 0.f, width, height); BluCat::INT::core.vk_renderer = new BluCat::GRA::Renderer( - {}, - {std::make_shared(region, region.z, region.w)}); + {std::make_shared(region, region.z, region.w)}, + width, height); } catch(const CommandError &e) { -- cgit v1.2.3