summaryrefslogtreecommitdiff
path: root/kmscube/cube-egl.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-04-22Fix a few clang warningsTomi Valkeinen
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
2022-12-04Fix clang-tidy warningsTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
2020-10-09Bulk format of all filesTomi Valkeinen
2016-12-09kmscube: improve egl config printsTomi Valkeinen
2016-06-11kms++util: split to subdirsTomi Valkeinen
2016-05-23Reorganize libkms++utils headerTomi Valkeinen
2016-04-22kmscube: check errorsTomi Valkeinen
2016-04-16kmscube: split into partsTomi Valkeinen