Skip to content

Commit

Permalink
[#40] Track Map: General improvements and bugfixes (Part 32.1: Missin…
Browse files Browse the repository at this point in the history
…g modifications)
  • Loading branch information
tomas-nestorovic committed Jun 24, 2023
1 parent 260c7d4 commit c65da01
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Main/src/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1992,6 +1992,12 @@ namespace Utils{
}
}

void ScaleLogicalUnit(PINT values,BYTE nValues){
// adds to specified Values the logical unit scale factor
while (nValues--)
*values++*=LogicalUnitScaleFactor;
}

void UnscaleLogicalUnit(PINT values,BYTE nValues){
// removes from specified Values the logical unit scale factor
while (nValues--)
Expand Down
1 change: 1 addition & 0 deletions Main/src/Utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,7 @@ namespace Utils{
CString BytesToHexaText(const char *chars,BYTE nChars,bool lastDelimitedWithAnd);
void NavigateToUrlInDefaultBrowser(LPCTSTR url);
void ScaleLogicalUnit(HDC dc);
void ScaleLogicalUnit(PINT values,BYTE nValues);
void UnscaleLogicalUnit(PINT values,BYTE nValues);
COLORREF GetSaturatedColor(COLORREF color,float saturationFactor);
COLORREF GetBlendedColor(COLORREF color1,COLORREF color2,float blendFactor=.5f);
Expand Down

0 comments on commit c65da01

Please sign in to comment.