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:
parent
dff2f63210
commit
5b3816c0b2
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue