mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-11-30 16:48:21 +01:00
当文本图层的图像尺寸有变化时,标记重绘文本位图
This commit is contained in:
@@ -516,6 +516,10 @@ TextLayer_SetOffset( LCUI_TextLayer *layer, LCUI_Pos offset_pos )
|
||||
LCUI_API int TextLayer_SetGraphSize( LCUI_TextLayer *layer,
|
||||
LCUI_Size new_size )
|
||||
{
|
||||
/* 如果尺寸有变化,则标记需要重绘文本位图 */
|
||||
if( layer->graph.h != new_size.h || layer->graph.h != new_size.h ) {
|
||||
TextLayer_Refresh( layer );
|
||||
}
|
||||
return Graph_Create( &layer->graph, new_size.w, new_size.h );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user