xen-troops / displ_be

GNU General Public License v2.0
2 stars 8 forks source link

FrameBuffer: remove the reinterpret_cast #125

Closed iusyk closed 3 years ago

iusyk commented 4 years ago

Reference:https://github.com/xen-troops/displ_be/issues/108 Scope of fixes 1)Add the virtual uint32_t FrameBuffer::getID()const {...} to the DRM FrameBuffer 2)Add wl_buffer* Wayland::WlBuffer::getWLBuffer()const {...} to WlBuffer 3)To support the new types, use dynamic_cast to deduct the correct type

Signed-off-by: Ihor Usyk ihor_usyk@epam.com Reviewed-by: Volodymyr Babchuk volodymyr_babchuk@epam.com

lorc commented 3 years ago

Reviewed-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>