lc-soft / LCUI

C library for building user interfaces
https://lcui-dev.github.io
MIT License
4.13k stars 355 forks source link

linux FRAMEBUFFER 释放BUG #157

Closed zhouxl6 closed 6 years ago

zhouxl6 commented 6 years ago

LCUI_DestroyLinuxDisplayDriver 函数中 关于 LCUI_DestroyLinuxFBDisplayDriver 调用前的宏定义是否应该 LCUI_VIDEO_DRIVER_FRAMEBUFFER 而不是 LCUI_VIDEO_DRIVER_X11 ?

https://github.com/lc-soft/LCUI/blob/6015838d00366fd1235ec2e34976ba061506e62f/src/platform/linux/linux_display.c#L62-L74

即:

#ifdef LCUI_VIDEO_DRIVER_X11
    case X11:
        LCUI_DestroyLinuxX11DisplayDriver( driver );
        break;
#endif
- #ifdef LCUI_VIDEO_DRIVER_X11
+ #ifdef LCUI_VIDEO_DRIVER_FRAMEBUFFER
    case FRAMEBUFFER:
        LCUI_DestroyLinuxFBDisplayDriver( driver );
        break;
#endif
lc-soft commented 6 years ago

You can create a Pull Request.