summaryrefslogtreecommitdiff
path: root/kmscube
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2017-02-10 07:33:55 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2017-02-10 10:55:12 +0200
commit38b625b629a48e8cf070a749111a641d45394634 (patch)
treec9a42185d1e89caabacf39ff853bc0c04346e965 /kmscube
parentd47d70dcf4bdb2ae34ec27ba65db5bfdcb64b480 (diff)
ExtFb: pass params in vectors
Diffstat (limited to 'kmscube')
-rw-r--r--kmscube/cube-gbm.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/kmscube/cube-gbm.cpp b/kmscube/cube-gbm.cpp
index 993434b..07413ab 100644
--- a/kmscube/cube-gbm.cpp
+++ b/kmscube/cube-gbm.cpp
@@ -134,9 +134,9 @@ public:
uint32_t handle = gbm_bo_get_handle(bo).u32;
PixelFormat format = (PixelFormat)gbm_bo_get_format(bo);
- uint32_t handles[4] { handle };
- uint32_t strides[4] { stride };
- uint32_t offsets[4] { 0 };
+ vector<uint32_t> handles { handle };
+ vector<uint32_t> strides { stride };
+ vector<uint32_t> offsets { 0 };
fb = new ExtFramebuffer(card, width, height, format, handles, strides, offsets);