Update main.cpp

This commit is contained in:
Purple
2022-04-08 01:49:47 +06:00
committed by GitHub
parent c6ee3f46ba
commit 6090797ba5
-7
View File
@@ -3306,17 +3306,10 @@ void GMainWindow::ShowMouseCursor() {
}
void GMainWindow::CenterMouseCursor() {
static bool logged = false;
if (emu_thread == nullptr || !Settings::values.mouse_panning) {
mouse_center_timer.stop();
logged = false;
LOG_INFO(Debug, "Stopped centering cursor!");
return;
}
if (!logged) {
LOG_INFO(Debug, "Started centering cursor!");
logged = true;
}
const int center_x = render_window->width() / 2;
const int center_y = render_window->height() / 2;