Fixed hud width not applying
@@ -503,6 +503,8 @@ static struct swapchain_data *new_swapchain_data(VkSwapchainKHR swapchain,
struct swapchain_data *data = new swapchain_data();
data->device = device_data;
data->swapchain = swapchain;
+ if (instance_data->params.font_size > 0 && instance_data->params.width == 280)
+ instance_data->params.width = hudFirstRow + hudSecondRow;
data->window_size = ImVec2(instance_data->params.width, instance_data->params.height);
map_object(HKEY(data->swapchain), data);
return data;
@@ -1108,8 +1110,6 @@ static void compute_swapchain_display(struct swapchain_data *data)
ImGui::SetCurrentContext(data->imgui_context);
ImGui::NewFrame();
position_layer(data);
- if (instance_data->params.font_size > 0 && instance_data->params.width == 280)
- instance_data->params.width = hudFirstRow + hudSecondRow;
if (!instance_data->params.no_display){
ImGui::Begin("Main", &open, ImGuiWindowFlags_NoDecoration);
