From da8470175f3360d2cc50df2b73307db1b257d762 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Thu, 30 Oct 2025 16:12:39 -0400 Subject: pke-test: extent to static global --- tests/pke-test-static-ui.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/pke-test-static-ui.cpp b/tests/pke-test-static-ui.cpp index 09affb9..6ad1a60 100644 --- a/tests/pke-test-static-ui.cpp +++ b/tests/pke-test-static-ui.cpp @@ -27,12 +27,14 @@ struct pke_ui_flex_params { static pk_membucket *bkt; +static VkExtent2D test_extent = { 1920, 1080 }; + void pke_test_static_ui_setup() { pke_test_stub_init_vulkan(); bkt = pk_mem_bucket_create("pke_test_static_ui", PK_MEM_DEFAULT_BUCKET_SIZE, PK_MEMBUCKET_FLAG_NONE); pk_mem_bucket_set_client_mem_bucket(bkt); - Extent.width = 1920; - Extent.height = 1080; + Extent.width = test_extent.width; + Extent.height = test_extent.height; pk_ev_init(nullptr); ECS_Init(); pke_input_init(); -- cgit v1.2.3