From 6c7a9ada6113ea1f71bbc6780892fb3cb8c3ba3b Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Fri, 8 May 2026 12:27:46 +0300 Subject: kmstest: Use pixpat vbar for the moving flip bar Replace the hand-rolled draw_color_bar call in FlipState::draw_bar with pixpat's "vbar" pattern via a new draw_vbar_pattern helper in kms++util. The pattern fills the full buffer, so the old_xpos bookkeeping for clearing the previous bar is no longer needed. --- kms++util/inc/kms++util/kms++util.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'kms++util/inc') diff --git a/kms++util/inc/kms++util/kms++util.h b/kms++util/inc/kms++util/kms++util.h index be06cab..f10968d 100644 --- a/kms++util/inc/kms++util/kms++util.h +++ b/kms++util/inc/kms++util/kms++util.h @@ -38,6 +38,8 @@ struct TestPatternOptions { }; void draw_test_pattern(IFramebuffer& fb, const TestPatternOptions& options = {}); +void draw_vbar_pattern(IFramebuffer& fb, unsigned x, unsigned width, + const TestPatternOptions& options = {}); } // namespace kms #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) -- cgit v1.2.3