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
Closed

linux FRAMEBUFFER 释放BUG #157

zhouxl6 opened this issue Jun 15, 2018 · 1 comment
Assignees
Milestone

Comments

@zhouxl6
Copy link

zhouxl6 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
Copy link
Owner

lc-soft commented Jun 15, 2018

You can create a Pull Request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants