forked from KolibriOS/kolibrios
fix constants
git-svn-id: svn://kolibrios.org@9120 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
3bb43bd591
commit
0317b4b039
@ -14,7 +14,6 @@ include '..\..\KOSfuncs.inc'
|
|||||||
START:
|
START:
|
||||||
;;óñòàíîâêà ìàñêà ñîáûòèé íà ïîëó÷åíèå ïåðåïèñîâêè è íàæàòèÿ íà êíîïêó
|
;;óñòàíîâêà ìàñêà ñîáûòèé íà ïîëó÷åíèå ïåðåïèñîâêè è íàæàòèÿ íà êíîïêó
|
||||||
mcall SF_SET_EVENTS_MASK,0x05
|
mcall SF_SET_EVENTS_MASK,0x05
|
||||||
mcall SF_STYLE_SETTINGS,SSF_GET_COLORS,sc,sc,sizeof.system_colors
|
|
||||||
;load driver
|
;load driver
|
||||||
mcall SF_SYS_MISC, SSF_LOAD_DRIVER_PE, path_drv, 0
|
mcall SF_SYS_MISC, SSF_LOAD_DRIVER_PE, path_drv, 0
|
||||||
mov dword[drv_struct.handl],eax
|
mov dword[drv_struct.handl],eax
|
||||||
@ -45,6 +44,7 @@ button:
|
|||||||
jmp still
|
jmp still
|
||||||
draw:
|
draw:
|
||||||
mcall SF_REDRAW, SSF_BEGIN_DRAW
|
mcall SF_REDRAW, SSF_BEGIN_DRAW
|
||||||
|
mcall SF_STYLE_SETTINGS,SSF_GET_COLORS,sc,sc,sizeof.system_colors
|
||||||
|
|
||||||
mov eax,SF_CREATE_WINDOW
|
mov eax,SF_CREATE_WINDOW
|
||||||
mov ebx,0x00ff013f
|
mov ebx,0x00ff013f
|
||||||
@ -215,7 +215,7 @@ draw:
|
|||||||
mov ecx,0x001d0015
|
mov ecx,0x001d0015
|
||||||
mov edx,eax;0x00000008
|
mov edx,eax;0x00000008
|
||||||
mov esi,[sc.work_button]
|
mov esi,[sc.work_button]
|
||||||
int 0x40
|
mcall
|
||||||
|
|
||||||
mov eax,SF_DRAW_TEXT;4
|
mov eax,SF_DRAW_TEXT;4
|
||||||
mov ebx,0x000a0020
|
mov ebx,0x000a0020
|
||||||
@ -345,7 +345,7 @@ exit:
|
|||||||
mcall SF_TERMINATE_PROCESS
|
mcall SF_TERMINATE_PROCESS
|
||||||
;Data_program;
|
;Data_program;
|
||||||
title db 'AMDtemp',0
|
title db 'AMDtemp',0
|
||||||
path_drv db '//kolibrios/drivers/sensors/k10temp.sys',0
|
path_drv db '/kolibrios/drivers/sensors/k10temp.sys',0
|
||||||
Error_text db 'Error load driver',0
|
Error_text db 'Error load driver',0
|
||||||
_NA db 'N/A',0
|
_NA db 'N/A',0
|
||||||
_dot db '.',0
|
_dot db '.',0
|
||||||
@ -386,6 +386,7 @@ drv_data:
|
|||||||
.Tmax dd -1
|
.Tmax dd -1
|
||||||
.Tcrit dd -1
|
.Tcrit dd -1
|
||||||
.Tcrit_hyst dd -1
|
.Tcrit_hyst dd -1
|
||||||
|
.sizeof = $ - drv_data ;
|
||||||
|
|
||||||
drv_struct:
|
drv_struct:
|
||||||
.handl dd 0
|
.handl dd 0
|
||||||
@ -393,7 +394,7 @@ drv_struct:
|
|||||||
dd 0
|
dd 0
|
||||||
dd 0
|
dd 0
|
||||||
dd drv_data
|
dd drv_data
|
||||||
dd 52 ; 13*4
|
dd drv_data.sizeof;52 ; 13*4
|
||||||
sc system_colors
|
sc system_colors
|
||||||
I_END:
|
I_END:
|
||||||
rd 256
|
rd 256
|
||||||
|
Loading…
Reference in New Issue
Block a user