diff --git a/examples/gui/demo_view_image.c b/examples/gui/demo_view_image.c index 9242f85e0..3e8b7e2f3 100644 --- a/examples/gui/demo_view_image.c +++ b/examples/gui/demo_view_image.c @@ -9,10 +9,10 @@ #include #include -// static rtgui_image_t* image = RT_NULL; -// static rtgui_view_t* _view = RT_NULL; - #if defined(RTGUI_USING_DFS_FILERW) || defined(RTGUI_USING_STDIO_FILERW) +static rtgui_image_t* image = RT_NULL; +static rtgui_view_t* _view = RT_NULL; + /* 打开按钮的回调函数 */ static void open_btn_onbutton(rtgui_widget_t* widget, struct rtgui_event* event) {