From 4189eb1cc6d1d9823e33ebcf1bb75c5ac1bb5300 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 9 Nov 2026 09:26:18 +0100 Subject: [PATCH] UI: Color test: Make the gamma check lines one pixel at any DPI scale pixel_in_dps_y is the inverse of a pixel's height in UI coordinates, so use the ratio of the resolutions. Co-Authored-By: Claude Opus 5.5 --- UI/DevScreens.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UI/DevScreens.cpp b/UI/DevScreens.cpp index 1d83b0f7b3..7ca740db4c 100644 --- a/UI/DevScreens.cpp +++ b/UI/DevScreens.cpp @@ -997,7 +997,8 @@ void ColorTestView::Wheel(DrawBuffer *draw, float cx, float cy, float radius, ui // Alternating black and white pixel rows average to 50% light. Blurred (by squinting, or resampling // like a VR compositor's), they match 188 when averaged in linear light, 128 when averaged as encoded. void ColorTestView::GammaCheck(DrawBuffer *draw, std::vector