@@ -138,8 +138,8 @@ void PerformanceMetrics::DrawImGuiStats(const float backbuffer_scale)
138138 const ImGuiCond set_next_position_condition =
139139 (display_size_changed || !movable_overlays) ? ImGuiCond_Always : ImGuiCond_FirstUseEver;
140140
141- float window_y = window_padding;
142- float window_x = display_size. x - window_padding;
141+ float window_y = window_padding + 40 . 0f * backbuffer_scale ;
142+ float window_x = window_padding;
143143
144144 const auto clamp_window_position = [&]() {
145145 const ImVec2 position = ImGui::GetWindowPos ();
@@ -173,10 +173,10 @@ void PerformanceMetrics::DrawImGuiStats(const float backbuffer_scale)
173173 {
174174 ImGui::PushStyleVar (ImGuiStyleVar_WindowPadding, ImVec2 (0 , 4 .f * backbuffer_scale));
175175
176- // Position in the top-right corner of the screen.
176+ // Position in the top-left corner of the screen.
177177
178178 ImGui::SetNextWindowPos (ImVec2 (window_x, window_y), set_next_position_condition,
179- ImVec2 (1 .0f , 0 .0f ));
179+ ImVec2 (0 .0f , 0 .0f ));
180180 ImGui::SetNextWindowSize (ImVec2 (graph_width, graph_height));
181181 ImGui::SetNextWindowBgAlpha (bg_alpha);
182182 window_y += graph_height + window_padding;
@@ -249,18 +249,18 @@ void PerformanceMetrics::DrawImGuiStats(const float backbuffer_scale)
249249
250250 if (g_ActiveConfig.bShowSpeed )
251251 {
252- // Position in the top-right corner of the screen.
252+ // Position in the top-left corner of the screen.
253253 float window_height = 47 .f * backbuffer_scale;
254254
255255 ImGui::SetNextWindowPos (ImVec2 (window_x, window_y), set_next_position_condition,
256- ImVec2 (1 .0f , 0 .0f ));
256+ ImVec2 (0 .0f , 0 .0f ));
257257 ImGui::SetNextWindowSize (ImVec2 (window_width, window_height));
258258 ImGui::SetNextWindowBgAlpha (bg_alpha);
259259
260260 if (stack_vertically)
261261 window_y += window_height + window_padding;
262262 else
263- window_x - = window_width + window_padding;
263+ window_x + = window_width + window_padding;
264264
265265 if (ImGui::Begin (" SpeedStats" , nullptr , imgui_flags))
266266 {
@@ -276,16 +276,16 @@ void PerformanceMetrics::DrawImGuiStats(const float backbuffer_scale)
276276 int count = g_ActiveConfig.bShowFPS + 2 * g_ActiveConfig.bShowFTimes ;
277277 float window_height = (12 .f + 17 .f * count) * backbuffer_scale;
278278
279- // Position in the top-right corner of the screen.
279+ // Position in the top-left corner of the screen.
280280 ImGui::SetNextWindowPos (ImVec2 (window_x, window_y), set_next_position_condition,
281- ImVec2 (1 .0f , 0 .0f ));
281+ ImVec2 (0 .0f , 0 .0f ));
282282 ImGui::SetNextWindowSize (ImVec2 (window_width, window_height));
283283 ImGui::SetNextWindowBgAlpha (bg_alpha);
284284
285285 if (stack_vertically)
286286 window_y += window_height + window_padding;
287287 else
288- window_x - = window_width + window_padding;
288+ window_x + = window_width + window_padding;
289289
290290 if (ImGui::Begin (" FPSStats" , nullptr , imgui_flags))
291291 {
@@ -308,16 +308,16 @@ void PerformanceMetrics::DrawImGuiStats(const float backbuffer_scale)
308308 int count = g_ActiveConfig.bShowVPS + 2 * g_ActiveConfig.bShowVTimes ;
309309 float window_height = (12 .f + 17 .f * count) * backbuffer_scale;
310310
311- // Position in the top-right corner of the screen.
311+ // Position in the top-left corner of the screen.
312312 ImGui::SetNextWindowPos (ImVec2 (window_x, window_y), set_next_position_condition,
313- ImVec2 (1 .0f , 0 .0f ));
313+ ImVec2 (0 .0f , 0 .0f ));
314314 ImGui::SetNextWindowSize (ImVec2 (window_width, (12 .f + 17 .f * count) * backbuffer_scale));
315315 ImGui::SetNextWindowBgAlpha (bg_alpha);
316316
317317 if (stack_vertically)
318318 window_y += window_height + window_padding;
319319 else
320- window_x - = window_width + window_padding;
320+ window_x + = window_width + window_padding;
321321
322322 if (ImGui::Begin (" VPSStats" , nullptr , imgui_flags))
323323 {
0 commit comments