change the way how MapLocationDialog sets marker on Windows
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Syping 2020-08-25 19:17:30 +02:00
parent e41d4946f8
commit a74e7847b2
1 changed files with 5 additions and 0 deletions

View File

@ -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;