mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-30 02:58:26 +08:00
format code
This commit is contained in:
parent
05e68590b5
commit
21caa7321c
@ -71,7 +71,7 @@ static ret_t widget_set_theme_without_file_system(widget_t* widget, const char*
|
||||
log_debug("theme changed: %s\n", name);
|
||||
|
||||
return RET_OK;
|
||||
#else /*WITH_FS_RES*/
|
||||
#else /*WITH_FS_RES*/
|
||||
return RET_NOT_IMPL;
|
||||
#endif /*WITH_FS_RES*/
|
||||
}
|
||||
|
@ -442,7 +442,7 @@ extern TK_CONST_DATA_ALIGN(const unsigned char image_girl[]);
|
||||
extern TK_CONST_DATA_ALIGN(const unsigned char font_ap[]);
|
||||
extern TK_CONST_DATA_ALIGN(const unsigned char font_default_full[]);
|
||||
extern TK_CONST_DATA_ALIGN(const unsigned char font_default[]);
|
||||
#else/*WITH_STB_FONT or WITH_FT_FONT*/
|
||||
#else /*WITH_STB_FONT or WITH_FT_FONT*/
|
||||
extern TK_CONST_DATA_ALIGN(const unsigned char font_default_20[]);
|
||||
extern TK_CONST_DATA_ALIGN(const unsigned char font_default_16[]);
|
||||
extern TK_CONST_DATA_ALIGN(const unsigned char font_default_18[]);
|
||||
@ -756,7 +756,7 @@ ret_t assets_init_dark(void) {
|
||||
assets_manager_add(am, font_ap);
|
||||
assets_manager_add(am, font_default_full);
|
||||
assets_manager_add(am, font_default);
|
||||
#else /*WITH_STB_FONT or WITH_FT_FONT*/
|
||||
#else /*WITH_STB_FONT or WITH_FT_FONT*/
|
||||
assets_manager_add(am, font_default_20);
|
||||
assets_manager_add(am, font_default_16);
|
||||
assets_manager_add(am, font_default_18);
|
||||
|
@ -442,7 +442,7 @@
|
||||
#include "assets/default/inc/fonts/ap.res"
|
||||
#include "assets/default/inc/fonts/default_full.res"
|
||||
#include "assets/default/inc/fonts/default.res"
|
||||
#else/*WITH_STB_FONT or WITH_FT_FONT*/
|
||||
#else /*WITH_STB_FONT or WITH_FT_FONT*/
|
||||
#include "assets/default/inc/fonts/default_20.data"
|
||||
#include "assets/default/inc/fonts/default_16.data"
|
||||
#include "assets/default/inc/fonts/default_18.data"
|
||||
@ -756,7 +756,7 @@ ret_t assets_init_default(void) {
|
||||
assets_manager_add(am, font_ap);
|
||||
assets_manager_add(am, font_default_full);
|
||||
assets_manager_add(am, font_default);
|
||||
#else /*WITH_STB_FONT or WITH_FT_FONT*/
|
||||
#else /*WITH_STB_FONT or WITH_FT_FONT*/
|
||||
assets_manager_add(am, font_default_20);
|
||||
assets_manager_add(am, font_default_16);
|
||||
assets_manager_add(am, font_default_18);
|
||||
|
@ -14,7 +14,7 @@ TEST(Utf8, ascii) {
|
||||
static void dump_utf8(const char* str) {
|
||||
const char* p = str;
|
||||
log_debug("dump_utf8:%s\n", str);
|
||||
while(*p) {
|
||||
while (*p) {
|
||||
log_debug("%02x ", ((int)(*p) & 0xff));
|
||||
p++;
|
||||
}
|
||||
@ -25,7 +25,7 @@ static void dump_utf8(const char* str) {
|
||||
static void dump_unicode(const wchar_t* str) {
|
||||
const wchar_t* p = str;
|
||||
log_debug("dump_unicode\n");
|
||||
while(*p) {
|
||||
while (*p) {
|
||||
log_debug("%04x ", (int)(*p));
|
||||
p++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user