Skip to content

Commit

Permalink
Fixes for banding in lighting
Browse files Browse the repository at this point in the history
  • Loading branch information
andon authored and andon committed Feb 6, 2017
1 parent 73ba706 commit 663b9f9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions include/DLL_VERSION.H
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

#define TBF_MAJOR 0
#define TBF_MINOR 8
#define TBF_BUILD 0
#define TBF_REV 2
#define TBF_BUILD 1
#define TBF_REV 0



Expand Down
10 changes: 6 additions & 4 deletions src/ImGui/control_panel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -687,15 +687,16 @@ TBFix_DrawConfigUI (void)
history [i].vu_peaks.inst_min = std::min (history [i].vu_peaks.inst_min, channel_peaks_ [i]);
history [i].vu_peaks.inst_max = std::max (history [i].vu_peaks.inst_max, channel_peaks_ [i]);

if (history [i].vu_peaks.dwMinSample < timeGetTime () - VUMETER_TIME * 2) {
history [i].vu_peaks.disp_min = history [i].vu_peaks.inst_min;
history [i].vu_peaks.disp_min = history [i].vu_peaks.inst_min;

if (history [i].vu_peaks.dwMinSample < timeGetTime () - VUMETER_TIME * 3) {
history [i].vu_peaks.inst_min = channel_peaks_ [i];
history [i].vu_peaks.dwMinSample = timeGetTime ();
}

history [i].vu_peaks.disp_max = history [i].vu_peaks.inst_max;

if (history [i].vu_peaks.dwMaxSample < timeGetTime () - VUMETER_TIME * 4) {
if (history [i].vu_peaks.dwMaxSample < timeGetTime () - VUMETER_TIME * 3) {
history [i].vu_peaks.inst_max = channel_peaks_ [i];
history [i].vu_peaks.dwMaxSample = timeGetTime ();
}
Expand Down Expand Up @@ -728,7 +729,8 @@ TBFix_DrawConfigUI (void)
ImGui::PopStyleColor ();
ImGui::EndGroup ();

if (i % 2) {
if (! (i % 2))
{
ImGui::SameLine (); ImGui::NextColumn ();
} else {
ImGui::Columns ( 1 );
Expand Down
Binary file modified version.ini
Binary file not shown.

0 comments on commit 663b9f9

Please sign in to comment.