Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux FRAMEBUFFER 释放BUG #157

Closed
zhouxl6 opened this Issue Jun 15, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@zhouxl6
Copy link

commented Jun 15, 2018

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

void LCUI_DestroyLinuxDisplayDriver( LCUI_DisplayDriver driver )
{
switch (driver_type) {
#ifdef LCUI_VIDEO_DRIVER_X11
case X11:
LCUI_DestroyLinuxX11DisplayDriver( driver );
break;
#endif
#ifdef LCUI_VIDEO_DRIVER_X11
case FRAMEBUFFER:
LCUI_DestroyLinuxFBDisplayDriver( driver );
break;
#endif

即:

#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

This comment has been minimized.

Copy link
Owner

commented Jun 15, 2018

You can create a Pull Request.

lc-soft added a commit that referenced this issue Jun 19, 2018

@lc-soft lc-soft closed this Jun 19, 2018

@lc-soft lc-soft self-assigned this Jun 19, 2018

@lc-soft lc-soft added this to the 1.0.0 Beta 4 milestone Jun 19, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.