mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-12-01 16:56:34 +01:00
修改Graph_Create函数
Graph_Create函数在释放graph后,会对graph进行初始化,避免使用已经销毁的互斥锁。
This commit is contained in:
+2
-1
@@ -405,7 +405,8 @@ Graph_Create( LCUI_Graph *graph, int width, int height )
|
||||
graph->height = height;
|
||||
return 0;
|
||||
}
|
||||
Graph_Free( graph );
|
||||
Graph_Free( graph );
|
||||
Graph_Init( graph );
|
||||
}
|
||||
graph->mem_size = (size_t)width*height;
|
||||
graph->rgba = New_Graph( width, height, graph->have_alpha );
|
||||
|
||||
Reference in New Issue
Block a user