mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-27 23:57:06 +08:00
simulator: fix exit issue when close RTGUI window
This commit is contained in:
parent
07f8375783
commit
a6fa98f1ee
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user