Notify3: fix, char 10 == \n, faster animation

git-svn-id: svn://kolibrios.org@4801 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
eAndrew 2014-04-08 18:39:01 +00:00
parent 4e977b2738
commit 367949dbec
3 changed files with 14 additions and 10 deletions

View File

@ -75,6 +75,13 @@
mov cl, [eax] mov cl, [eax]
cmpe cl, "\", .char cmpe cl, "\", .char
cmpne cl, 10, .copy
cmple esi, dword [text.max_len], @f
mov [text.max_len], esi
@@:
mov esi, 0
mov cl, 0
inc dword [text.lines]
jmp .copy jmp .copy
.char: .char:
@ -353,11 +360,11 @@
cmpe [first_draw], byte 1, .draw_full cmpe [first_draw], byte 1, .draw_full
mov [first_draw], byte 1 mov [first_draw], byte 1
mov esi, [window.height] mov esi, [window.height]
mov ecx, LINEH / 2 mov ecx, LINEH
@@: @@:
mcall mcall
add ecx, (LINEH / 2) shl 16 add ecx, LINEH shl 16
sub esi, LINEH / 2 sub esi, LINEH
push eax ebx push eax ebx
mcall 5, 1 mcall 5, 1
pop ebx eax pop ebx eax
@ -532,9 +539,9 @@
;---------------------------- ;----------------------------
sz_ifile db "notify3.png", 0 sz_ifile db "/sys/notify3.png", 0
sz_shname db "notify-mem-v01", 0 sz_shname db "notify-mem-v01", 0
sz_std db "'Notify 3. Keys list\n \n", \ sz_std db "'Notify 3. Keys list\n ", 10, \
"d - disable auto-closing\n", \ "d - disable auto-closing\n", \
"t - first line is title\n", \ "t - first line is title\n", \
"A - application icon\n", \ "A - application icon\n", \

View File

@ -9,7 +9,7 @@
2.2 <TEXT> 2.2 <TEXT>
All charactes. If you won`t to write character of quote (" or '), you must All charactes. If you won`t to write character of quote (" or '), you must
enter \ before it (\" or \'). New-line character is "\n". enter \ before it (\" or \'). New-line character is "\n" or char 10.
2.3 <KEYS> 2.3 <KEYS>
d - disable auto-closing d - disable auto-closing
@ -21,4 +21,4 @@
N - network icon N - network icon
I - info icon I - info icon
F - folder icon F - folder icon
C - component icon C - component icon

View File

@ -1,3 +0,0 @@
#SHS
@notify "HTTP Downloader\nhttp://builds.kolibrios.org/rus/latest-img.7z\nhas been successfully downloaded" -tdN
@notify "RDSave\nRAM-¤¨áª á®åà ­ñ­ ãᯥ譮 ¢ /hd0/2/boot/kolibri.img" -tdF