From a9e7ecab862183399c5947931f2bad69ecec393d Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Wed, 5 Feb 2025 11:28:23 +0200 Subject: PixelFormats: New PixelFormatInfo code New pixel format code, from Python pixutils library. Signed-off-by: Tomi Valkeinen --- kms++util/src/testpat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kms++util/src/testpat.cpp') diff --git a/kms++util/src/testpat.cpp b/kms++util/src/testpat.cpp index 7699243..029684a 100644 --- a/kms++util/src/testpat.cpp +++ b/kms++util/src/testpat.cpp @@ -118,7 +118,7 @@ static void draw_test_pattern_part(IFramebuffer& fb, unsigned start_y, unsigned break; case PixelColorType::YUV: - switch (plane_info.xsub + plane_info.ysub) { + switch (plane_info.hsub + plane_info.vsub) { case 2: for (y = start_y; y < end_y; y++) { for (x = 0; x < w; x++) { -- cgit v1.2.3