Skip to content

Bring PS5 GTA6 to 120FPS with DLSS 5. An advanced Windows video player and capture enhancement tool featuring real-time preview for videos, images, and capture card sources. Combine AI-powered Super Resolution, DLSS5 image enhancement, and Frame Generation to deliver a next-generation visual experience.

C++

fix(ui): curve polyline starts from the curve's real value at x=0 (the shadow-end spike was a drawing seed bug)

Veyra Goal Agent9961ce072687
diff --git a/apps/veyra/SettingsWindow.cpp b/apps/veyra/SettingsWindow.cpp
index 5a788610..a2dd4376 100644
--- a/apps/veyra/SettingsWindow.cpp
+++ b/apps/veyra/SettingsWindow.cpp
@@ -628,7 +628,12 @@ void paintToneCurve(HWND h,HDC dc,RECT r){
const auto& curve=colour.curves[std::size_t(channel)];
const bool active=channel==colourCurveChannel;
Gdiplus::Pen pen(color(curveColours[channel],active?255:70),active?2.0f:1.0f);
- int previousX=canvas.left,previousY=canvas.bottom;
+ // Seed the polyline with the curve's real value at x=0. Seeding it with
+ // the canvas corner drew a fake near-vertical segment at the shadow end
+ // (the "why is there an angle down here" report) that the highlight end
+ // never showed, because the loop happens to end exactly at x=1.
+ int previousX=canvas.left;
+ int previousY=canvas.bottom-int(std::clamp(veyra::pipeline::ColorGradeTables::curveValue(curve,0.0f),0.0f,1.0f)*float(canvas.bottom-canvas.top));
for(int step=1;step<=64;++step){
const float t=float(step)/64.0f;
const float value=veyra::pipeline::ColorGradeTables::curveValue(curve,t);