summaryrefslogtreecommitdiff
path: root/kmscube/cube-x11.cpp
AgeCommit message (Collapse)Author
2025-12-18fix: Replace C-style casts with C++ castsTomi Valkeinen
This commit addresses cppcheck warnings about C-style casts (cstyleCast) by replacing them with appropriate C++ casts. C-style casts are considered dangerous because they can perform unsafe conversions without compile-time type checking, while C++ casts are more explicit and type-safe. Changes made: - static_cast for safe type conversions (e.g., void* to struct*) - reinterpret_cast for pointer type conversions (e.g., uint8_t* to char*) - Combined static_cast and reinterpret_cast for integer-to-pointer conversions Fixed files: - kmscube/cube-gles2.cpp: GLvoid* casts for OpenGL vertex attribute pointers - kmscube/cube-wl.cpp: Wayland interface pointer casts - kmscube/cube-x11.cpp: X11 window handle conversion - utils/fbtest.cpp: mmap return value cast - utils/kmstest.cpp: Framebuffer pointer arithmetic - utils/kmsview.cpp: Framebuffer memory mapping cast
2020-10-09Bulk format of all filesTomi Valkeinen
2017-10-03kmscube: compile fixTomi Valkeinen
2016-11-26kmscube: fix X11 fullscreenTomi Valkeinen
2016-06-11kms++util: split to subdirsTomi Valkeinen
2016-05-23Reorganize libkms++utils headerTomi Valkeinen
2016-04-20kmscube: improve the x11 mainloopTomi Valkeinen
2016-04-19kmscube: hackingTomi Valkeinen
2016-04-19kmscube: fix resource leaks & freeingTomi Valkeinen
2016-04-19kmscube: quick hack for fullscreenTomi Valkeinen
2016-04-16kmscube: split into partsTomi Valkeinen