OSD: update hide/disable mask behavior.

This commit is contained in:
sorgelig
2019-05-17 21:16:45 +08:00
parent 448cc2cf67
commit 135adc4977

View File

@@ -1152,7 +1152,7 @@ void HandleUI(void)
while((p[0] == 'H' || p[0] == 'D') && strlen(p)>2)
{
int flg = (hdmask & (1<<getIdx(p))) ? 1 : 0;
if (p[0] == 'H') h = flg; else d = flg;
if (p[0] == 'H') h |= flg; else d |= flg;
p += 2;
}
@@ -1358,7 +1358,7 @@ void HandleUI(void)
while ((p[0] == 'H' || p[0] == 'D') && strlen(p) > 2)
{
int flg = (hdmask & (1 << getIdx(p))) ? 1 : 0;
if (p[0] == 'H') h = flg; else d = flg;
if (p[0] == 'H') h |= flg; else d |= flg;
p += 2;
}