change the way how MapLocationDialog sets marker on Windows
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Syping 2020-08-25 19:17:30 +02:00
parent e41d4946f8
commit a74e7847b2

View file

@ -133,8 +133,13 @@ void MapLocationDialog::paintEvent(QPaintEvent *ev)
long xpos_pr; long xpos_pr;
long ypos_pr; long ypos_pr;
if (screenRatioPR != 1) { if (screenRatioPR != 1) {
#ifdef GTA5SYNC_WIN
xpos_pr = xpos_mp - pointMarkerHalfSize;
ypos_pr = ypos_mp + pointMarkerHalfSize;
#else
xpos_pr = xpos_mp - pointMarkerHalfSize + screenRatioPR; xpos_pr = xpos_mp - pointMarkerHalfSize + screenRatioPR;
ypos_pr = ypos_mp + pointMarkerHalfSize - screenRatioPR; ypos_pr = ypos_mp + pointMarkerHalfSize - screenRatioPR;
#endif
} }
else { else {
xpos_pr = xpos_mp - pointMarkerHalfSize; xpos_pr = xpos_mp - pointMarkerHalfSize;