From a74e7847b2efd2d1bcd080fd53b20aeec00e94a2 Mon Sep 17 00:00:00 2001 From: Syping Date: Tue, 25 Aug 2020 19:17:30 +0200 Subject: [PATCH] change the way how MapLocationDialog sets marker on Windows --- MapLocationDialog.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MapLocationDialog.cpp b/MapLocationDialog.cpp index a2e1a30..142083a 100644 --- a/MapLocationDialog.cpp +++ b/MapLocationDialog.cpp @@ -133,8 +133,13 @@ void MapLocationDialog::paintEvent(QPaintEvent *ev) long xpos_pr; long ypos_pr; if (screenRatioPR != 1) { +#ifdef GTA5SYNC_WIN + xpos_pr = xpos_mp - pointMarkerHalfSize; + ypos_pr = ypos_mp + pointMarkerHalfSize; +#else xpos_pr = xpos_mp - pointMarkerHalfSize + screenRatioPR; ypos_pr = ypos_mp + pointMarkerHalfSize - screenRatioPR; +#endif } else { xpos_pr = xpos_mp - pointMarkerHalfSize;