Merge branch 'master' of https://github.com/RT-Thread/rt-thread
This commit is contained in:
commit
74ee48a3da
|
@ -56,7 +56,7 @@ static rt_err_t sdlfb_control(rt_device_t dev, rt_uint8_t cmd, void *args)
|
||||||
|
|
||||||
info = (struct rt_device_graphic_info *) args;
|
info = (struct rt_device_graphic_info *) args;
|
||||||
info->bits_per_pixel = 16;
|
info->bits_per_pixel = 16;
|
||||||
info->pixel_format = RTGRAPHIC_PIXEL_FORMAT_RGB565P;
|
info->pixel_format = RTGRAPHIC_PIXEL_FORMAT_RGB565;
|
||||||
info->framebuffer = device->screen->pixels;
|
info->framebuffer = device->screen->pixels;
|
||||||
info->width = device->screen->w;
|
info->width = device->screen->w;
|
||||||
info->height = device->screen->h;
|
info->height = device->screen->h;
|
||||||
|
@ -307,8 +307,12 @@ static void *sdl_loop(void *lpParam)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (quit)
|
if (quit)
|
||||||
|
{
|
||||||
|
exit(1);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
rt_hw_exit();
|
rt_hw_exit();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue