提交 a6fa98f1 编写于 作者: P prife

simulator: fix exit issue when close RTGUI window

上级 07f83757
......@@ -11,6 +11,8 @@
#define SDL_SCREEN_WIDTH 800
#define SDL_SCREEN_HEIGHT 480
extern void rt_hw_exit(void);
struct sdlfb_device
{
struct rt_device parent;
......@@ -307,7 +309,7 @@ static void *sdl_loop(void *lpParam)
if (quit)
break;
}
//exit(0);
rt_hw_exit();
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册