Fixed some issue with calculating hud height
@@ -213,25 +213,27 @@ parse_overlay_env(struct overlay_params *params,
if (params->height != 140)
heightChanged = true;
- int FrameTimeGraphHeight = 0;
- if (params->enabled[OVERLAY_PARAM_ENABLED_frame_timing])
- FrameTimeGraphHeight = 50;
-
if (!params->font_size)
params->font_size = 24.0f;
- if (params->font_size && !heightChanged)
+ int FrameTimeGraphHeight = 0;
+
+ if (!heightChanged){
+ if (params->enabled[OVERLAY_PARAM_ENABLED_frame_timing])
+ FrameTimeGraphHeight = 50 + params->font_size / 2;
+
+ if (params->font_size)
params->height = (params->font_size - 3 * 2) * 3 + FrameTimeGraphHeight;
// Apply more hud height if cores are enabled
- if (params->enabled[OVERLAY_PARAM_ENABLED_core_load] && !heightChanged)
+ if (params->enabled[OVERLAY_PARAM_ENABLED_core_load])
params->height += ((params->font_size - 3) * get_nprocs());
if (params->enabled[OVERLAY_PARAM_ENABLED_gpu_stats])
- params->height += (params->font_size - 3);
+ params->height += ((params->font_size) / 2);
if (params->enabled[OVERLAY_PARAM_ENABLED_cpu_stats])
- params->height += (params->font_size - 3);
+ params->height += ((params->font_size) / 2);
if (params->enabled[OVERLAY_PARAM_ENABLED_ram])
params->height += (params->font_size - 3);
@@ -239,3 +241,5 @@ parse_overlay_env(struct overlay_params *params,
if (params->enabled[OVERLAY_PARAM_ENABLED_vram])
params->height += (params->font_size - 3);
}
+
+}
