diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2025-10-30 16:12:39 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2025-10-30 16:12:39 -0400 |
| commit | da8470175f3360d2cc50df2b73307db1b257d762 (patch) | |
| tree | 6a4d5135ea1041b7cb39589bf868979a3048fbf9 | |
| parent | 66fbcabd9d930a91f0c1a97a1e725d8d435d22da (diff) | |
pke-test: extent to static global
| -rw-r--r-- | tests/pke-test-static-ui.cpp | 6 |
1 files 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(); |
