Subversion Repositories Kolibri OS

Rev

Rev 304 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 304 Rev 318
Line 987... Line 987...
987
    mov  ecx, system_colours
987
    mov  ecx, system_colours
988
    mov  edx, 10*4
988
    mov  edx, 10*4
989
    int  0x40
989
    int  0x40
Line 990... Line 990...
990
 
990
 
-
 
991
    mov  eax, [system_colours+4*6]
991
    mov  eax, [system_colours+4*6]
992
    sub  eax, 0x101010
Line 992... Line 993...
992
    mov  [wcolor], eax
993
    mov  [wcolor], eax
993
 
994
 
Line 1811... Line 1812...
1811
 
1812
 
Line 1812... Line 1813...
1812
 
1813
 
Line 1813... Line 1814...
1813
 
1814
 
1814
draw_cpu_usage:
1815
draw_cpu_usage:
1815
 
1816
 
1816
    pusha
1817
    pushad
1817
 
1818
 
Line 1818... Line 1819...
1818
    mov  [ysi],30
1819
    mov  [ysi],30
1819
    cmp  [graph_text],1
1820
    cmp  [graph_text],1
Line 1836... Line 1837...
1836
 
1837
 
1837
    cdq
1838
    cdq
1838
    pop  ebx
1839
    pop  ebx
1839
    inc  ebx
1840
    inc  ebx
-
 
1841
    div  ebx
-
 
1842
    cmp  eax,[ysi]
-
 
1843
    jng  no_bug
-
 
1844
    mov  eax,[ysi]
1840
    div  ebx
1845
no_bug:
Line 1841... Line 1846...
1841
    push eax
1846
    push eax
1842
 
1847
 
1843
    mov  eax,13
1848
    mov  eax,13
1844
    mov  ebx,[maxx]
1849
    mov  ebx,[maxx]
1845
    sub  ebx,60 ;;65
1850
    sub  ebx,60 ;;65
1846
    shl  ebx,16
1851
    shl  ebx,16
1847
    mov  bx,8
1852
    mov  bx,8
1848
    push ebx
1853
    push ebx
1849
    mov  eax,13
1854
    mov  eax,13
1850
    mov  ecx,5*65536
-
 
1851
    add  cx,word [ysi]
-
 
1852
    inc  cx
-
 
1853
 
-
 
1854
    push ebx
-
 
1855
    inc  ecx
-
 
1856
    sub  ebx,1 shl 16
-
 
1857
    add  ebx,2
-
 
1858
    xor  edx,edx
-
 
1859
    int  0x40
-
 
1860
    dec  ecx
-
 
1861
    pop  ebx
1855
    mov  ecx,5*65536
1862
 
-
 
1863
    mov  edx,0xff0000  ;[wcolor]
1856
    add  ecx,[ysi]
1864
;    sub  edx,0x303030
1857
    mov  edx,0xff0000  ;[sc.work_button]
1865
    int  0x40
1858
    int  0x40
Line 1866... Line -...
1866
    pop  ebx
-
 
1867
    pop  eax
-
 
1868
 
1859
    pop  ebx
1869
;    push ebx
1860
    pop  eax
1870
    inc  eax
-
 
1871
    mov  ecx,5*65536
-
 
1872
    mov  cx,ax
-
 
1873
;    pop  ebx
-
 
1874
    push ecx
-
 
1875
    push ebx
-
 
1876
    sub  ecx,1 shl 16
-
 
1877
    add  ecx,1
1861
 
1878
    sub  ebx,1 shl 16
1862
    mov  ecx,5*65536
1879
    add  ebx,2
1863
    mov  cx,ax
1880
    mov  eax,13
-
 
1881
    xor  edx,edx
-
 
1882
    int  0x40
-
 
1883
    pop  ebx
-
 
1884
    pop  ecx
-
 
1885
    mov  edx,0x44aa44  ;[wcolor]
-
 
1886
;    add  edx,0x00101010
-
 
Line -... Line 1864...
-
 
1864
    mov  eax,13
1887
    int  0x40
1865
    mov  edx,0x44aa44  ;[sc.work_button]
Line -... Line 1866...
-
 
1866
    int  0x40
1888
 
1867
 
Line 1889... Line 1868...
1889
    popa
1868
    popad
1890
 
1869
    ret
1891
    ret
1870