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
@ -45,24 +45,23 @@ draw_window: ; Completely redraw the window, recalculate all coordinates and
|
||||
pusha
|
||||
|
||||
mcall 12, 1
|
||||
xor eax, eax ; draw window
|
||||
mov ebx, WIN_MIN_X
|
||||
mov ecx, WIN_MIN_Y
|
||||
xor eax, eax ; draw window
|
||||
mov ebx, WIN_MIN_X+10
|
||||
mov ecx, WIN_MIN_Y+30
|
||||
mov edx, [colors.work]
|
||||
add edx, 0x33000000
|
||||
mov edi, str_programname
|
||||
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
|
||||
|
||||
; calculate available space for textbox and coordinates for scrollbars
|
||||
mov eax, [ysize]
|
||||
sub eax, TOP_Y + INPUTBOX_HEIGHT - 1 ;;;;
|
||||
sub eax, TOP_Y + INPUTBOX_HEIGHT - 1
|
||||
mov [scroll2.y_size], ax
|
||||
mov [scroll1.y_size], ax
|
||||
sub eax, 4 ;;;;
|
||||
sub eax, 4
|
||||
xor edx, edx
|
||||
mov ecx, FONT_HEIGHT
|
||||
div ecx
|
||||
@ -144,6 +143,7 @@ draw_window: ; Completely redraw the window, recalculate all coordinates and
|
||||
call draw_window_tabs
|
||||
|
||||
.exit:
|
||||
mcall 12, 2
|
||||
popa
|
||||
ret
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
;; ;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
version equ '0.27'
|
||||
version equ '0.28'
|
||||
|
||||
; connection status
|
||||
STATUS_DISCONNECTED = 0
|
||||
@ -216,9 +216,6 @@ START:
|
||||
call cmd_usr_server.now
|
||||
@@:
|
||||
|
||||
; Draw window a first time, so we can figure out skin size
|
||||
call draw_window
|
||||
|
||||
redraw:
|
||||
call draw_window
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user