forked from KolibriOS/kolibrios
Reduced window redraw on startup.
git-svn-id: svn://kolibrios.org@6098 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
5cf2fe46d9
commit
38392b6ca6
@ -46,23 +46,22 @@ draw_window: ; Completely redraw the window, recalculate all coordinates and
|
|||||||
|
|
||||||
mcall 12, 1
|
mcall 12, 1
|
||||||
xor eax, eax ; draw window
|
xor eax, eax ; draw window
|
||||||
mov ebx, WIN_MIN_X
|
mov ebx, WIN_MIN_X+10
|
||||||
mov ecx, WIN_MIN_Y
|
mov ecx, WIN_MIN_Y+30
|
||||||
mov edx, [colors.work]
|
mov edx, [colors.work]
|
||||||
add edx, 0x33000000
|
add edx, 0x33000000
|
||||||
mov edi, str_programname
|
mov edi, str_programname
|
||||||
mcall
|
mcall
|
||||||
mcall 12, 2
|
|
||||||
|
|
||||||
test [thread_info.wnd_state], 100b ; skip if window is rolled up
|
test [thread_info.wnd_state], 100b ; skip if window is rolled up
|
||||||
jne .exit
|
jne .exit
|
||||||
|
|
||||||
; calculate available space for textbox and coordinates for scrollbars
|
; calculate available space for textbox and coordinates for scrollbars
|
||||||
mov eax, [ysize]
|
mov eax, [ysize]
|
||||||
sub eax, TOP_Y + INPUTBOX_HEIGHT - 1 ;;;;
|
sub eax, TOP_Y + INPUTBOX_HEIGHT - 1
|
||||||
mov [scroll2.y_size], ax
|
mov [scroll2.y_size], ax
|
||||||
mov [scroll1.y_size], ax
|
mov [scroll1.y_size], ax
|
||||||
sub eax, 4 ;;;;
|
sub eax, 4
|
||||||
xor edx, edx
|
xor edx, edx
|
||||||
mov ecx, FONT_HEIGHT
|
mov ecx, FONT_HEIGHT
|
||||||
div ecx
|
div ecx
|
||||||
@ -144,6 +143,7 @@ draw_window: ; Completely redraw the window, recalculate all coordinates and
|
|||||||
call draw_window_tabs
|
call draw_window_tabs
|
||||||
|
|
||||||
.exit:
|
.exit:
|
||||||
|
mcall 12, 2
|
||||||
popa
|
popa
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
;; ;;
|
;; ;;
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
version equ '0.27'
|
version equ '0.28'
|
||||||
|
|
||||||
; connection status
|
; connection status
|
||||||
STATUS_DISCONNECTED = 0
|
STATUS_DISCONNECTED = 0
|
||||||
@ -216,9 +216,6 @@ START:
|
|||||||
call cmd_usr_server.now
|
call cmd_usr_server.now
|
||||||
@@:
|
@@:
|
||||||
|
|
||||||
; Draw window a first time, so we can figure out skin size
|
|
||||||
call draw_window
|
|
||||||
|
|
||||||
redraw:
|
redraw:
|
||||||
call draw_window
|
call draw_window
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user