diff options
| author | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2026-05-08 12:27:46 +0300 |
|---|---|---|
| committer | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2026-05-08 17:25:59 +0300 |
| commit | 6c7a9ada6113ea1f71bbc6780892fb3cb8c3ba3b (patch) | |
| tree | 8fb6f2370d95f204d7585713aa71e0610f97728b /kms++util/inc | |
| parent | 549c347d6feb2e94a810a720c97a8bf0f57317a1 (diff) | |
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.
Diffstat (limited to 'kms++util/inc')
| -rw-r--r-- | kms++util/inc/kms++util/kms++util.h | 2 |
1 files changed, 2 insertions, 0 deletions
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])) |
