From 9d6d723846d737b0bcc6b51afefcf313f723dcd0 Mon Sep 17 00:00:00 2001 From: Frederico Linhares Date: Mon, 10 Oct 2022 16:13:12 -0300 Subject: feat Move configuration from YAML file to game --- src/vk/graphics_pipeline_2d.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/vk/graphics_pipeline_2d.cpp') diff --git a/src/vk/graphics_pipeline_2d.cpp b/src/vk/graphics_pipeline_2d.cpp index 1509d2f..734a509 100644 --- a/src/vk/graphics_pipeline_2d.cpp +++ b/src/vk/graphics_pipeline_2d.cpp @@ -42,8 +42,8 @@ load_framebuffer(void *obj) cg_core.vk_graphics_pipeline_2d_layout->render_pass; framebuffer_info.attachmentCount = attachments.size(); framebuffer_info.pAttachments = attachments.data(); - framebuffer_info.width = cg_core.screen_width; - framebuffer_info.height = cg_core.screen_height; + framebuffer_info.width = cg_core.display_width; + framebuffer_info.height = cg_core.display_height; framebuffer_info.layers = 1; if(vkCreateFramebuffer( @@ -130,14 +130,14 @@ load_pipeline(void *obj) VkViewport viewport = {}; viewport.x = 0; viewport.y = 0; - viewport.width = cg_core.screen_width; - viewport.height = cg_core.screen_height; + viewport.width = cg_core.display_width; + viewport.height = cg_core.display_height; viewport.minDepth = 0.0f; viewport.maxDepth = 1.0f; VkRect2D scissor = {}; scissor.offset = {0, 0}; - scissor.extent = {cg_core.screen_width, cg_core.screen_height}; + scissor.extent = {cg_core.display_width, cg_core.display_height}; VkPipelineViewportStateCreateInfo viewport_state = {}; viewport_state.sType = -- cgit v1.2.3