modified for ServerGetTopmostZNodeOfType

This commit is contained in:
gengyue
2020-09-06 11:11:13 +08:00
parent 5944085555
commit fa2382c0de

View File

@@ -756,7 +756,7 @@ int GUIAPI ServerGetTopmostZNodeOfType (MG_Layer* layer, DWORD type, int* cli)
return -1;
zi = (ZORDERINFO*)layer->zorder_info;
topmost = zi->first_in_levels [ZOF_TYPE_TOOLTIP - type];
topmost = zi->first_in_levels [(ZOF_TYPE_TOOLTIP - type) >> 28];
if (topmost <= 0) {
return 0;
}