tune code for _MGSCHEMA_COMPOSITING

This commit is contained in:
Vincent Wei
2020-01-13 18:04:12 +08:00
parent 3a66595c4d
commit 4620c06a74
2 changed files with 4 additions and 8 deletions
+2 -3
View File
@@ -102,14 +102,13 @@ static BOOL InitWndManagementInfo (void)
BOOL mg_InitDesktop (void)
{
int ret = 0;
RECT rcScr = GetScreenRect();
/*
* Init ZOrderInfo here.
*/
ret = kernel_alloc_z_order_info (DEF_NR_TOPMOSTS, DEF_NR_NORMALS);
if (ret < 0) {
__mg_zorder_info = kernel_alloc_z_order_info (DEF_NR_TOPMOSTS, DEF_NR_NORMALS);
if (__mg_zorder_info == NULL) {
_WRN_PRINTF ("KERNEL>Desktop: Can not initialize ZOrderInfo!\n");
return FALSE;
}
+2 -5
View File
@@ -110,14 +110,11 @@ static BOOL InitWndManagementInfo (void)
BOOL mg_InitDesktop (void)
{
int ret = 0;
/*
* Init ZOrderInfo here.
*/
ret = kernel_alloc_z_order_info (DEF_NR_TOPMOSTS, DEF_NR_NORMALS);
if (ret < 0) {
__mg_zorder_info = kernel_alloc_z_order_info (DEF_NR_TOPMOSTS, DEF_NR_NORMALS);
if (__mg_zorder_info == NULL) {
_WRN_PRINTF ("KERNEL>Desktop: Can not initialize ZOrderInfo!\n");
return FALSE;
}