mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-11-30 16:48:21 +01:00
style: remove useless semicolons
This commit is contained in:
@@ -457,7 +457,7 @@ int TextLayer_SetCaretPosByPixelPos( LCUI_TextLayer layer, int x, int y )
|
||||
int i, pixel_pos, ins_x, ins_y;
|
||||
pixel_pos = layer->offset_y;
|
||||
for( i = 0; i < layer->text_rows.length; ++i ) {
|
||||
pixel_pos += layer->text_rows.rows[i]->height;;
|
||||
pixel_pos += layer->text_rows.rows[i]->height;
|
||||
if( pixel_pos >= y ) {
|
||||
ins_y = i;
|
||||
break;
|
||||
@@ -970,7 +970,7 @@ void TextLayer_SetMultiline( LCUI_TextLayer layer, int is_true )
|
||||
if( (layer->is_mulitiline_mode && !is_true)
|
||||
|| (!layer->is_mulitiline_mode && is_true) ) {
|
||||
layer->is_mulitiline_mode = is_true;
|
||||
TextLayer_AddUpdateTypeset( layer, 0 );;
|
||||
TextLayer_AddUpdateTypeset( layer, 0 );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1096,7 +1096,7 @@ static int TextLayer_TextDeleteEx( LCUI_TextLayer layer, int char_y,
|
||||
TextLayer_InvalidateRowRect( layer, char_y, 0, -1 );
|
||||
TextRowList_RemoveRow( &layer->text_rows, char_y );
|
||||
}
|
||||
TextLayer_AddUpdateTypeset( layer, char_y );;
|
||||
TextLayer_AddUpdateTypeset( layer, char_y );
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -453,7 +453,7 @@ void Widget_GetOffset( LCUI_Widget w, LCUI_Widget parent,
|
||||
}
|
||||
|
||||
LCUI_Widget LCUIWidget_GetById( const char *id )
|
||||
{;
|
||||
{
|
||||
LinkedList *list;
|
||||
LCUI_Widget w = NULL;
|
||||
|
||||
@@ -498,7 +498,6 @@ LCUI_Widget Widget_GetChild( LCUI_Widget w, size_t index )
|
||||
|
||||
int Widget_Top( LCUI_Widget w )
|
||||
{
|
||||
DEBUG_MSG("tip\n");
|
||||
return Widget_Append( LCUIWidget.root, w );
|
||||
}
|
||||
|
||||
|
||||
@@ -131,7 +131,7 @@ static void LCUILayout_HandleInlineBlock( LCUI_LayoutContext ctx )
|
||||
{
|
||||
ctx->current->origin_x = ctx->x;
|
||||
ctx->x += ctx->current->box.outer.width;
|
||||
ctx->line_width += ctx->current->box.outer.width;;
|
||||
ctx->line_width += ctx->current->box.outer.width;
|
||||
/* 只考虑小数点后两位 */
|
||||
if( ctx->x - ctx->max_width >= 0.01 ) {
|
||||
LCUILayout_HandleCurrentLine( ctx );
|
||||
|
||||
Reference in New Issue
Block a user