riched20: Remove always false conditions.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Huw Davies 2021-03-19 09:14:13 +00:00 committed by Alexandre Julliard
parent dff2f63210
commit 5b3816c0b2
1 changed files with 2 additions and 10 deletions

View File

@ -1198,11 +1198,7 @@ void ME_UpdateScrollBar(ME_TextEditor *editor)
if (editor->scrollbars & WS_HSCROLL) if (editor->scrollbars & WS_HSCROLL)
{ {
if (si.fMask & SIF_DISABLENOSCROLL) { if (si.fMask & SIF_DISABLENOSCROLL) bScrollBarWillBeVisible = TRUE;
bScrollBarWillBeVisible = TRUE;
} else if (!(editor->scrollbars & WS_HSCROLL)) {
bScrollBarWillBeVisible = FALSE;
}
if (bScrollBarWasVisible != bScrollBarWillBeVisible) if (bScrollBarWasVisible != bScrollBarWillBeVisible)
ITextHost_TxShowScrollBar(editor->texthost, SB_HORZ, bScrollBarWillBeVisible); ITextHost_TxShowScrollBar(editor->texthost, SB_HORZ, bScrollBarWillBeVisible);
@ -1253,11 +1249,7 @@ void ME_UpdateScrollBar(ME_TextEditor *editor)
if (editor->scrollbars & WS_VSCROLL) if (editor->scrollbars & WS_VSCROLL)
{ {
if (si.fMask & SIF_DISABLENOSCROLL) { if (si.fMask & SIF_DISABLENOSCROLL) bScrollBarWillBeVisible = TRUE;
bScrollBarWillBeVisible = TRUE;
} else if (!(editor->scrollbars & WS_VSCROLL)) {
bScrollBarWillBeVisible = FALSE;
}
if (bScrollBarWasVisible != bScrollBarWillBeVisible) if (bScrollBarWasVisible != bScrollBarWillBeVisible)
ITextHost_TxShowScrollBar(editor->texthost, SB_VERT, ITextHost_TxShowScrollBar(editor->texthost, SB_VERT,