Skip to content

Commit

Permalink
[#40] Track Map: General improvements and bugfixes (Part 11.1: Fixed …
Browse files Browse the repository at this point in the history
…functionality on high-DPI screens)
  • Loading branch information
tomas-nestorovic committed Aug 8, 2020
1 parent 4c33624 commit 45eeff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Main/src/ViewTrackMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@

inline
int CTrackMapView::TTrackLength::GetPixelCount(BYTE zoomFactor) const{
return SECTOR1_X + (nBytes>>zoomFactor) + nSectors*SECTOR_MARGIN;
return ( SECTOR1_X + (nBytes>>zoomFactor) + nSectors*SECTOR_MARGIN )*Utils::LogicalUnitScaleFactor;
}

BYTE CTrackMapView::TTrackLength::GetZoomFactorToFitWidth(int windowWidth) const{
Expand Down

0 comments on commit 45eeff3

Please sign in to comment.