Subversion Repositories Kolibri OS

Rev

Rev 7421 | Rev 7823 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7421 Rev 7437
Line 37... Line 37...
37
include 'lang.inc'
37
include 'lang.inc'
38
include '../../macros.inc'
38
include '../../macros.inc'
39
include '../../proc32.inc'
39
include '../../proc32.inc'
40
include '../../develop/libraries/box_lib/trunk/box_lib.mac'
40
include '../../develop/libraries/box_lib/trunk/box_lib.mac'
41
include '../../dll.inc'
41
include '../../dll.inc'
42
;include '../../debug.inc'
42
include '../../debug.inc'
-
 
43
 
-
 
44
 
-
 
45
; include '../include/lang.inc'
-
 
46
; include '../include/macros.inc'
-
 
47
; include '../include/proc32.inc'
-
 
48
; include '../include/box_lib.mac'
-
 
49
; include '../include/dll.inc'
-
 
50
 
43
;------------------------------------------------------------------------------
51
;------------------------------------------------------------------------------
44
START:		; start of execution
52
START:		; start of execution
-
 
53
 
45
	mcall	68,11
54
	mcall	68,11
46
	stdcall dll.Load,IMPORTS
55
	stdcall dll.Load,IMPORTS
47
	test	eax,eax
56
	test	eax,eax
48
	jnz	ErrLoadLibs
57
	jnz	ErrLoadLibs
Line 117... Line 126...
117
	xor	eax,eax
126
	xor	eax,eax
118
	mov	ecx,100h/4
127
	mov	ecx,100h/4
119
	rep stosd
128
	rep stosd
120
	mov	[nLoadIcon],0
129
	mov	[nLoadIcon],0
121
	stdcall [ini_enum_sections],IconIni,LoadIconsData
130
	stdcall [ini_enum_sections],IconIni,LoadIconsData
122
;int3
131
 
123
	mov	eax,dword[PIcoDB]
132
	mov	eax,dword[PIcoDB]
124
	sub	eax,[BegData]
133
	sub	eax,[BegData]
125
	mov	dword[SizeData],eax
134
	mov	dword[SizeData],eax
126
	mov	eax,[BegData]
135
	mov	eax,[BegData]
127
	cmp	eax,[PIcoDB]
136
	cmp	eax,[PIcoDB]
Line 531... Line 540...
531
	xor	al,al
540
	xor	al,al
532
	or	ecx,-1
541
	or	ecx,-1
533
	repne	scasb
542
	repne	scasb
534
	repne	scasb
543
	repne	scasb
535
	repne	scasb
544
	repne	scasb
536
	mov	al,[edi]
-
 
537
	;cmp	al,'9'
-
 
538
	;ja	PathToIcon
-
 
539
	cmp	al,'/'
-
 
540
	jne	GetIconInd
-
 
541
 
-
 
542
   PathToIcon:
-
 
543
	mov	al,30h		 ;§ £«ã誠!!!!!!!!!!!!!
-
 
544
	mov	byte[edi+1],0
-
 
545
 
-
 
546
	jmp	CopyToMem
-
 
547
   GetIconInd:
-
 
Line 548... Line -...
548
 
-
 
549
	sub	al,30h
-
 
550
	cmp	byte[edi+1],0
-
 
551
	je	@f
-
 
552
	shl	eax,1
545
 
553
	lea	eax,[eax*4+eax]
-
 
554
	xor	edx,edx
-
 
555
	mov	dl,[edi+1]
-
 
556
	sub	dl,30h
546
	;stdcall hexToInt,edi
557
	add	eax,edx
547
	stdcall strToInt,edi
558
     @@:	     ;eax=num icon
548
     @@:	     ;eax=num icon
559
	cmp	eax,[icon_count]
549
	cmp	eax,[icon_count]
560
	jb	@f
550
	jb	@f
561
	xor	eax,eax
551
	xor	eax,eax
Line 911... Line 901...
911
 
901
 
912
 
902
 
913
;ä®à¬ â IPC-á®®¡é¥­¨ï
903
;ä®à¬ â IPC-á®®¡é¥­¨ï
914
;dd X
904
;dd X
915
;dd Y
905
;dd Y
916
;asciiz Icon
906
;asciiz Icon - in decimal
917
;asciiz Name
907
;asciiz Name
918
;asciiz Path
908
;asciiz Path
919
;asciiz Params
909
;asciiz Params
Line 924... Line 914...
924
	iy rd 1
914
	iy rd 1
925
endl
915
endl
Line 926... Line 916...
926
 
916
 
927
	mov	eax,IPCbuffer+8
917
	mov	eax,IPCbuffer+8
928
	mov	dword[IPCbuffer],1
-
 
929
	;mov     edx,dword[IPCbuffer+4]
918
	mov	dword[IPCbuffer],1
Line 930... Line 919...
930
	lea	edx,[eax+8]
919
	lea	edx,[eax+8]
931
 
920
 
Line 1283... Line 1272...
1283
slotDlgAdd	rd 1
1272
slotDlgAdd	rd 1
1284
DlgBufImg	rb IMG_SIZE*IMG_SIZE*3
1273
DlgBufImg	rb IMG_SIZE*IMG_SIZE*3
Line 1285... Line 1274...
1285
 
1274
 
1286
align 4
1275
align 4
1287
bufStdIco	rb 40
1276
bufStdIco	rb 40
1288
IconsOffs	rd 100		;â ¡«¨æ  á 㪠§ â¥«ï¬¨ ­  ª®­ªà¥â­ë¥ ¨ª®­ª¨(¤«ï ã᪮७¨ï)
1277
IconsOffs	rd 100h 	;â ¡«¨æ  á 㪠§ â¥«ï¬¨ ­  ª®­ªà¥â­ë¥ ¨ª®­ª¨(¤«ï ã᪮७¨ï)
1289
PIcoDB		rd 1
1278
PIcoDB		rd 1		;㪠§ â¥«ì ­  ¡ãää¥à á ¨­ä®© ®¡® ¢á¥å ¨ª®­ª å
1290
nLoadIcon	rd 1		;­®¬¥à ç¨â ¥¬®© ¨§ ini ¨ª®­ª¨
1279
nLoadIcon	rd 1		;­®¬¥à ç¨â ¥¬®© ¨§ ini ¨ª®­ª¨
Line 1291... Line 1280...
1291
IconsID 	rd 100		;ID ¨ª®­®ª - 2 ¡ ©âa + ¡ ©â 0 + ¢ëà ¢­¨¢ î騩 ¡ ©â - áâப  á 2¬ï è¥á­ ¤æ¥â¨à¨ç­ë¬¨ æ¨äà ¬¨
1280
IconsID 	rd 100h 	;ID ¨ª®­®ª - 2 ¡ ©âa + ¡ ©â 0 + ¢ëà ¢­¨¢ î騩 ¡ ©â - áâப  á 2¬ï è¥á­ ¤æ¥â¨à¨ç­ë¬¨ æ¨äà ¬¨
Line 1292... Line 1281...
1292
 
1281
 
1293
nameSection	rb 4
1282
nameSection	rb 4
Line 1333... Line 1322...
1333
		rb 512
1322
		rb 512
1334
stack_bredraw:
1323
stack_bredraw:
1335
		rb 512
1324
		rb 512
1336
stack_main:
1325
stack_main:
1337
;------------------------------------------------------------------------------
1326
;------------------------------------------------------------------------------
-
 
1327
 
-
 
1328
 
-
 
1329
 
-
 
1330
 
1338
ENDMEM:
1331
ENDMEM:
1339
1332