summaryrefslogtreecommitdiff
path: root/kmscube/cube-gbm.cpp
AgeCommit message (Collapse)Author
2025-12-18fix: Resolve variable shadowing warningsTomi Valkeinen
This commit addresses cppcheck warnings about local variables that shadow outer function names (shadowFunction). Variable shadowing can make code confusing and error-prone as it's unclear which variable is being referenced. Changes made: - kmscube/cube-egl.cpp: Renamed 'config' to 'cfg' in loop to avoid shadowing the config() member function - kmscube/cube-gbm.cpp: Renamed 'width' and 'height' local variables to 'bo_width' and 'bo_height' to avoid shadowing width() and height() member functions These changes improve code clarity and eliminate potential confusion about variable scope and naming.
2025-03-26Use the fourcc helpersTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
2024-12-09Implement native visual matchingKaido Kert
Implement matching GBM buffer format to EGL NATIVE_VISUAL_ID. eglChooseConfig cannot match on NATIVE_VISUAL_ID, but GBM/EGL requires matching formats. Similar logic is implemented in kmscube code in match_config_to_visual. X11, Wayland and Null cube demos remain unchanged. Tested on Raspi-4 and VirtualBox/Ubuntu
2024-11-29Make gbm binary respect numframesKaido Kert
2020-10-09Bulk format of all filesTomi Valkeinen
2017-10-10kmscube: update drm resource allocationTomi Valkeinen
2017-10-10kmscube: drop non-atomic supportTomi Valkeinen
2017-02-10ExtFb: pass params in vectorsTomi Valkeinen
2016-06-17kmscube: use drmModeAddFB2 version of ExtFBTomi Valkeinen
2016-06-11kms++util: split to subdirsTomi Valkeinen
2016-06-11kms++: organize into subdirsTomi Valkeinen
2016-05-23Reorganize libkms++utils headerTomi Valkeinen
2016-04-25kmscube: remove unused fieldTomi Valkeinen
2016-04-25kmscube: fix wrong uses of class FramebufferTomi Valkeinen
2016-04-16add -Wextra & fix warningsTomi Valkeinen
2016-04-16kmscube: split into partsTomi Valkeinen