diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2017-02-10 07:33:55 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2017-02-10 10:55:12 +0200 |
commit | 38b625b629a48e8cf070a749111a641d45394634 (patch) | |
tree | c9a42185d1e89caabacf39ff853bc0c04346e965 /kmscube | |
parent | d47d70dcf4bdb2ae34ec27ba65db5bfdcb64b480 (diff) |
ExtFb: pass params in vectors
Diffstat (limited to 'kmscube')
-rw-r--r-- | kmscube/cube-gbm.cpp | 6 |
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); |