forked from KolibriOS/kolibrios
rtfread: yet another scroll_bar fix
git-svn-id: svn://kolibrios.org@1525 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
3533831e62
commit
b227b900a4
@ -485,20 +485,26 @@ draw_window:
|
|||||||
mov esi, -1
|
mov esi, -1
|
||||||
|
|
||||||
mov eax, [procinfo2.box.width]
|
mov eax, [procinfo2.box.width]
|
||||||
cmp eax, 140
|
cmp eax, [window_width]
|
||||||
je @f
|
je @f
|
||||||
mov [is_scroll_bar_needed], 0
|
mov [is_scroll_bar_needed], 0
|
||||||
jg @f
|
cmp eax, 140
|
||||||
mov edx, 140
|
jnl @f
|
||||||
|
mov eax, 140
|
||||||
@@:
|
@@:
|
||||||
|
mov edx, eax
|
||||||
|
mov [window_width], eax
|
||||||
|
|
||||||
mov eax, [procinfo2.box.height]
|
mov eax, [procinfo2.box.height]
|
||||||
cmp eax, 80
|
cmp eax, [window_height]
|
||||||
je @f
|
je @f
|
||||||
mov [is_scroll_bar_needed], 0
|
mov [is_scroll_bar_needed], 0
|
||||||
jg @f
|
cmp eax, 80
|
||||||
mov esi, 80
|
jnl @f
|
||||||
|
mov eax, 80
|
||||||
@@:
|
@@:
|
||||||
|
mov esi, eax
|
||||||
|
mov [window_height], eax
|
||||||
|
|
||||||
mcall 67, -1, -1
|
mcall 67, -1, -1
|
||||||
|
|
||||||
@ -721,8 +727,9 @@ end if
|
|||||||
; ‚ë ¬®¦ĄâĄ § ¤ âě ď§ëŞ ˘ MACROS.INC (lang fix ď§ëŞ)
|
; ‚ë ¬®¦ĄâĄ § ¤ âě ď§ëŞ ˘ MACROS.INC (lang fix ď§ëŞ)
|
||||||
|
|
||||||
window_title: db 'RtfRead v1.034',0
|
window_title: db 'RtfRead v1.034',0
|
||||||
buf_cmd_lin dd 0x0
|
|
||||||
is_scroll_bar_needed dd 0x0
|
is_scroll_bar_needed dd 0x0
|
||||||
|
window_width dd 0x0
|
||||||
|
window_height dd 0x0
|
||||||
;---------------------------------------------------------------------
|
;---------------------------------------------------------------------
|
||||||
l_libs_start:
|
l_libs_start:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user