Login Page - Create Account

Support Board


Date/Time: Sat, 23 Nov 2024 21:47:03 +0000



Post From: Graphical Issue With Bar Draw Style Never Fixed

[2024-07-29 05:08:20]
esMike - Posts: 69
It effects the plain DRAWSTYLE_BAR and DRAWSTYLE_BARTOP draw styles.

It only happens at positive values, not negative values. Negative values everything is lined up correctly.
Attached is a very clear 4x zoom picture of the problem.

It's very odd... As long as Width is 1, there is no problem. The misalignment occurs when you increase the Width to 2 or higher.

Below is a "hacky" fix for the problem which I use. I adjust all Width 2+ DRAWSTYLE_BAR type drawings to 0.8% reduced height relative to study value range.

      for (int Index = sc.Index; Index >= sc.Index - chartBars; Index--) {
        if (pulseStr[Index] > 1) {
          pulseStr[Index] = pulseTop[Index] - studyRange * 0.008f;
        }
        if (pulseSup[Index] > 1) {
          pulseSup[Index] = pulseTop[Index] - studyRange * 0.008f;
        }
        if (pulseExt[Index] > 1) {
          pulseExt[Index] = pulseTop[Index] - studyRange * 0.008f;
        }

      }

Date Time Of Last Edit: 2024-07-29 05:40:13
imageproblem.png / V - Attached On 2024-07-29 05:07:55 UTC - Size: 35.72 KB - 48 views