dummy message
This commit is contained in:
parent
49df205c28
commit
509fb5e001
@ -144,8 +144,6 @@ void paintTracks(HDC hdc, RECT rcTracks)
|
|||||||
int trackTop = topMarginHeight + (firstLine - scrollPosY) * fontHeight;
|
int trackTop = topMarginHeight + (firstLine - scrollPosY) * fontHeight;
|
||||||
for (int y = firstLine; y < lastLine; ++y)
|
for (int y = firstLine; y < lastLine; ++y)
|
||||||
{
|
{
|
||||||
int val = y | (x << 8);
|
|
||||||
|
|
||||||
RECT patternDataRect;
|
RECT patternDataRect;
|
||||||
patternDataRect.left = trackLeft;
|
patternDataRect.left = trackLeft;
|
||||||
patternDataRect.right = trackLeft + trackWidth;
|
patternDataRect.right = trackLeft + trackWidth;
|
||||||
@ -153,9 +151,12 @@ void paintTracks(HDC hdc, RECT rcTracks)
|
|||||||
patternDataRect.bottom = patternDataRect.top + fontHeight;
|
patternDataRect.bottom = patternDataRect.top + fontHeight;
|
||||||
FillRect( hdc, &patternDataRect, (HBRUSH)GetStockObject(WHITE_BRUSH));
|
FillRect( hdc, &patternDataRect, (HBRUSH)GetStockObject(WHITE_BRUSH));
|
||||||
|
|
||||||
|
bool key = (y % 8 == 0);
|
||||||
|
float val = (float(y) / 16);
|
||||||
|
|
||||||
/* format the text */
|
/* format the text */
|
||||||
if (y % 16 != 0) _snprintf_s(temp, 256, "- - -", val);
|
if (!key) _snprintf_s(temp, 256, " - - -");
|
||||||
else _snprintf_s(temp, 256, "%2.2f", (float(y) / 16));
|
else _snprintf_s(temp, 256, "%2.2f", val);
|
||||||
TextOut(hdc,
|
TextOut(hdc,
|
||||||
trackLeft, trackTop,
|
trackLeft, trackTop,
|
||||||
temp, int(strlen(temp))
|
temp, int(strlen(temp))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user