@@ -243,10 +243,9 @@ void ImGuiManager::RenderTextOverlays(const GPUBackend* gpu)
243243 const bool paused = VideoThread::IsSystemPaused ();
244244
245245 const float scale = ImGuiManager::GetGlobalScale ();
246- const float f_margin = ImGuiManager::GetScreenMargin () * scale;
247- const float margin = ImCeil (ImGuiManager::GetScreenMargin () * scale);
246+ const float margin = ImGuiManager::GetScreenMargin ();
248247 const float spacing = ImCeil (5 .0f * scale);
249- float position_y = ImFloor (f_margin) ;
248+ float position_y = margin ;
250249 DrawPerformanceOverlay (gpu, position_y, scale, margin, spacing);
251250 DrawMediaCaptureOverlay (position_y, scale, margin, spacing);
252251
@@ -646,7 +645,7 @@ void ImGuiManager::DrawEnhancementsOverlay(const GPUBackend* gpu)
646645
647646 const float scale = ImGuiManager::GetGlobalScale ();
648647 const float shadow_offset = 1 .0f * scale;
649- const float margin = ImGuiManager::GetScreenMargin () * scale ;
648+ const float margin = ImGuiManager::GetScreenMargin ();
650649 ImFont* const font = ImGuiManager::GetFixedFont ();
651650 const float font_size = ImGuiManager::GetFixedFontSize ();
652651 const float font_weight = 600 .0f ;
@@ -861,7 +860,7 @@ void ImGuiManager::DrawInputsOverlay()
861860{
862861 const float scale = ImGuiManager::GetGlobalScale ();
863862 const float shadow_offset = ImCeil (1 .0f * scale);
864- const float margin = ImGuiManager::GetScreenMargin () * scale ;
863+ const float margin = ImGuiManager::GetScreenMargin ();
865864 const float spacing = ImCeil (5 .0f * scale);
866865 ImFont* const font = ImGuiManager::GetTextFont ();
867866 const float font_size = ImGuiManager::GetOSDFontSize ();
0 commit comments