diff --git a/SConstruct b/SConstruct index f7dce4df4..2f7cbf227 100644 --- a/SConstruct +++ b/SConstruct @@ -31,7 +31,7 @@ os.environ['LIB_DIR'] = LIB_DIR; os.environ['LFTK_ROOT'] = LFTK_ROOT; os.environ['GTEST_ROOT'] = GTEST_ROOT; -CCFLAGS=OS_FLAGS + ' -DLFTK_ROOT=\\\"'+LFTK_ROOT+'\\\" -DWITH_STB_IMAGE -DWITH_STB_FONT' +CCFLAGS=OS_FLAGS + ' -DLFTK_ROOT=\\\"'+LFTK_ROOT+'\\\" -DWITH_STB_IMAGE -DWITH_STB_FONT -DSDL2' DefaultEnvironment(CCFLAGS = CCFLAGS, CPPPATH = [LFTK_ROOT, LFTK_SRC, LFTK_3RD_ROOT, os.path.join(LFTK_3RD_ROOT, 'agg-2.5/include'), LFTK_TOOLS_ROOT] + OS_CPPPATH, LIBS=['lftk', 'agg', 'SDL2'] + OS_LIBS, diff --git a/demos/demo1_app.c b/demos/demo1_app.c index bc6528cdd..fba93d39f 100644 --- a/demos/demo1_app.c +++ b/demos/demo1_app.c @@ -118,7 +118,7 @@ ret_t application_init() { progress_bar = progress_bar_create(win, 10, 80, 168, 20); widget_set_value(progress_bar, 40); - // timer_add(on_timer, progress_bar, 200); + timer_add(on_timer, progress_bar, 200); #ifndef WITH_STM32F103ZE_RAW progress_bar_set_show_text(progress_bar, TRUE); diff --git a/demos/res/raw/theme/theme.xml b/demos/res/raw/theme/theme.xml index b1552f753..f9137a721 100644 --- a/demos/res/raw/theme/theme.xml +++ b/demos/res/raw/theme/theme.xml @@ -31,6 +31,16 @@ + + + +