Subversion Repositories Kolibri OS

Rev

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

Rev 2125 Rev 2136
Line 323... Line 323...
323
		mov eax,250
323
		mov eax,250
324
	@@:
324
	@@:
325
	sub eax,65
325
	sub eax,65
326
	mov dword[tree1.box_height],eax
326
	mov dword[tree1.box_height],eax
327
	mov word[w_scr_t1+4],ax ;­®¢ë¥ à §¬¥àë áªà®««¨­£ 
327
	mov word[w_scr_t1+4],ax ;­®¢ë¥ à §¬¥àë áªà®««¨­£ 
-
 
328
	cmp eax,dword[buf_0.h] ;㢥«¨ç¨¢ ¥¬ ¢ëá®âã ¡ãä¥à 
-
 
329
	jle @f
-
 
330
		stdcall [buf2d_resize],buf_0,0,eax
-
 
331
		mov dword[offs_last_timer],0 ;¤«ï ®¡­®¢«¥­¨ï ¡ãä¥à  ¢ â ©¬¥à¥
-
 
332
	@@:
-
 
333
 
-
 
334
	mov eax,dword[procinfo.box.width]
-
 
335
	cmp eax,400
-
 
336
	jge @f
-
 
337
		mov eax,400
-
 
338
	@@:
-
 
339
	sub eax,[buf_0.w]
-
 
340
	sub eax,41
-
 
341
	mov dword[tree1.box_width],eax
-
 
342
	add ax,word[tree1.box_left]
-
 
343
	mov word[w_scr_t1.start_x],ax
-
 
344
	add ax,16+5
-
 
345
	mov word[buf_0.l],ax
Line 328... Line 346...
328
 
346
 
329
	mov eax,8
347
	mov eax,8
330
	mov ebx,(5 shl 16)+20
348
	mov ebx,(5 shl 16)+20
331
	mov ecx,(5 shl 16)+20
349
	mov ecx,(5 shl 16)+20
Line 519... Line 537...
519
		mov ebx,dword[level_stack]
537
		mov ebx,dword[level_stack]
520
		inc ebx
538
		inc ebx
521
		; ***  ­ «¨§ ¡«®ª®¢ á à §­ë¬¨ ¤ ­­ë¬¨ ¨ ¢ë¤¥«¥­¨¥¬ ¯®¤¡«®ª®¢
539
		; ***  ­ «¨§ ¡«®ª®¢ á à §­ë¬¨ ¤ ­­ë¬¨ ¨ ¢ë¤¥«¥­¨¥¬ ¯®¤¡«®ª®¢
522
		cmp dx,CHUNK_OBJBLOCK ;®¡ê¥ªâ
540
		cmp dx,CHUNK_OBJBLOCK ;®¡ê¥ªâ
523
		jne @f
541
		jne @f
524
			.cycle_0:
-
 
525
				push ax
542
			push ax
526
					cld
543
				cld
527
					xor al,al
544
				xor al,al
528
					mov edi,esi
545
				mov edi,esi
529
					repne scasb
546
				repne scasb
530
				pop ax
547
			pop ax
531
				sub edi,esi ;edi - strlen
548
			sub edi,esi ;edi - strlen
532
				stdcall add_3ds_object, ID_ICON_DATA,ebx,edi,0 ;­ §¢ ­¨¥ ®¡ê¥ªâ 
549
			stdcall add_3ds_object, ID_ICON_DATA,ebx,edi,0 ;­ §¢ ­¨¥ ®¡ê¥ªâ 
533
				add esi,edi
550
			add esi,edi
534
				sub ecx,edi
551
			;sub ecx,edi ;㦥 ᤥ« ­® ¢ repne
535
			jmp .next_bl
552
			jmp .next_bl
536
		@@:
553
		@@:
537
		cmp dx,CHUNK_VERTLIST ;ᯨ᮪ ¢¥à設
554
		cmp dx,CHUNK_VERTLIST ;ᯨ᮪ ¢¥à設
538
		je .vertexes
555
		je .vertexes
539
		cmp dx,0x4111 ;ä« £¨ ¢¥à設
556
		cmp dx,0x4111 ;ä« £¨ ¢¥à設
540
		je .vertexes
557
		je .vertexes
541
		cmp dx,CHUNK_FACELIST ;ᯨ᮪ £à ­¥©
558
		cmp dx,CHUNK_MAPLIST ;⥪áâãà­ë¥ ª®®à¤¨­ âë
542
		je .vertexes
559
		je .vertexes
543
		jmp @f
560
		jmp @f
544
		.vertexes: ;®¡à ¡®âª  ¡«®ª®¢, ᮤ¥à¦ é¨å ¤ ­­ë¥ ¢¥à設
561
		.vertexes: ;®¡à ¡®âª  ¡«®ª®¢, ᮤ¥à¦ é¨å ¤ ­­ë¥ ¢¥à設
545
			stdcall add_3ds_object, ID_ICON_DATA,ebx,2,txt_count ;ç¨á«® ¢¥à設 ¨«¨ £à ­¥©
562
			stdcall add_3ds_object, ID_ICON_DATA,ebx,2,txt_count ;ç¨á«® ¢¥à設
546
			add esi,2
563
			add esi,2
547
			sub ecx,2
564
			sub ecx,2
548
			stdcall add_3ds_object, ID_ICON_DATA,ebx,ecx,0 ;¤ ­­ë¥ ¢¥à設
565
			stdcall add_3ds_object, ID_ICON_DATA,ebx,ecx,0 ;¤ ­­ë¥ ¢¥à設
549
			sub esi,8 ;¢®ááâ ­®¢«¥­¨¥ esi
566
			sub esi,8 ;¢®ááâ ­®¢«¥­¨¥ esi
550
			call block_next
567
			call block_next
551
			jmp .end_f		
568
			jmp .end_f		
552
		@@:
569
		@@:
-
 
570
		cmp dx,CHUNK_FACELIST ;ᯨ᮪ £à ­¥©
-
 
571
		jne @f
-
 
572
			stdcall add_3ds_object, ID_ICON_DATA,ebx,2,txt_count ;ç¨á«® £à ­¥©
-
 
573
			push eax
-
 
574
			xor eax,eax
-
 
575
			mov ax,[esi]
-
 
576
			shl eax,3
-
 
577
			add esi,2
-
 
578
			sub ecx,2
-
 
579
			stdcall add_3ds_object, ID_ICON_DATA,ebx,eax,0 ;¤ ­­ë¥ ¢¥à設
-
 
580
 
-
 
581
			sub ecx,eax
-
 
582
			cmp ecx,1
-
 
583
			jl .data_3 ;¯à®¢¥à塞 ¥áâì «¨ ¡«®ª ®¯¨á뢠î騩 ¬ â¥à¨ «, ¯à¨¬¥­ï¥¬ë© ª ®¡ê¥ªâã
-
 
584
				add esi,eax
-
 
585
				pop eax
-
 
586
				jmp .next_bl
-
 
587
				;stdcall add_3ds_object, ID_ICON_DATA,ebx,ecx,0 ;¤ ­­ë¥ ¬ â¥à¨ « 
-
 
588
				;sub esi,eax ;¢®ááâ ­®¢«¥­¨¥ esi
-
 
589
			.data_3:
-
 
590
 
-
 
591
			sub esi,8 ;¢®ááâ ­®¢«¥­¨¥ esi
-
 
592
			pop eax
-
 
593
			call block_next
-
 
594
			jmp .end_f		
-
 
595
		@@:
-
 
596
		cmp dx,CHUNK_FACEMAT ;¬ â¥à¨ «ë £à ­¥©
-
 
597
		jne @f
-
 
598
			push ax
-
 
599
				cld
-
 
600
				xor al,al
-
 
601
				mov edi,esi
-
 
602
				repne scasb
-
 
603
			pop ax
-
 
604
			sub edi,esi ;edi - strlen
-
 
605
			stdcall add_3ds_object, ID_ICON_DATA,ebx,edi,0 ;­ §¢ ­¨¥ ®¡ê¥ªâ 
-
 
606
			add esi,edi
-
 
607
			;sub ecx,edi ;㦥 ᤥ« ­® ¢ repne
-
 
608
			stdcall add_3ds_object, ID_ICON_DATA,ebx,2,txt_count ;ç¨á«® £à ­¥©
-
 
609
			add esi,2
-
 
610
			sub ecx,2
-
 
611
			stdcall add_3ds_object, ID_ICON_DATA,ebx,ecx,0 ;­®¬¥à  £à ­¥©, ª ª®â®àë¬ ¯à¨¬¥­¥­ ¬ â¥à¨ «
-
 
612
			sub esi,edi ;¢®ááâ ­®¢«¥­¨¥ esi (1)
-
 
613
			sub esi,8   ;¢®ááâ ­®¢«¥­¨¥ esi (2)
-
 
614
			call block_next
-
 
615
			jmp .end_f
-
 
616
		@@:
553
		; ***  ­ «¨§ ¡«®ª  á ¤ ­­ë¬¨ ¯® 㬮«ç ­¨î (¡¥§ ¢ë¤¥«¥­¨ï ¯®¤¡«®ª®¢)
617
		; ***  ­ «¨§ ¡«®ª  á ¤ ­­ë¬¨ ¯® 㬮«ç ­¨î (¡¥§ ¢ë¤¥«¥­¨ï ¯®¤¡«®ª®¢)
554
			stdcall add_3ds_object, ID_ICON_DATA,ebx,ecx,0
618
			stdcall add_3ds_object, ID_ICON_DATA,ebx,ecx,0
555
			sub esi,6 ;¢®ááâ ­®¢«¥­¨¥ esi
619
			sub esi,6 ;¢®ááâ ­®¢«¥­¨¥ esi
556
			call block_next
620
			call block_next
557
			jmp .end_f
621
			jmp .end_f
Line 947... Line 1011...
947
	OpenDialog_Start dd aOpenDialog_Start
1011
	OpenDialog_Start dd aOpenDialog_Start
948
dd 0,0
1012
dd 0,0
949
	aOpenDialog_Init db 'OpenDialog_init',0
1013
	aOpenDialog_Init db 'OpenDialog_init',0
950
	aOpenDialog_Start db 'OpenDialog_start',0
1014
	aOpenDialog_Start db 'OpenDialog_start',0
Line 951... Line -...
951
 
-
 
952
;       file.find_first db 'file_find_first',0
-
 
953
;       file.find_next  db 'file_find_next',0
-
 
954
;       file.find_close db 'file_find_close',0
-
 
955
;       file.size      db 'file_size',0
-
 
956
;       file.open      db 'file_open',0
-
 
957
;       file.read      db 'file_read',0
-
 
958
;       file.write     db 'file_write',0
-
 
959
;       file.seek      db 'file_seek',0
-
 
960
;       file.tell      db 'file_tell',0
-
 
961
;       file.eof?      db 'file_iseof',0
-
 
962
;       file.truncate  db 'file_truncate',0
-
 
963
;       file.close     db 'file_close',0
-
 
964
 
1015
 
965
align 4
1016
align 4
966
import_buf2d:
1017
import_buf2d:
967
	dd sz_init0
1018
	dd sz_init0
968
	buf2d_create dd sz_buf2d_create
1019
	buf2d_create dd sz_buf2d_create
969
	buf2d_create_f_img dd sz_buf2d_create_f_img
1020
	buf2d_create_f_img dd sz_buf2d_create_f_img
970
	buf2d_clear dd sz_buf2d_clear
1021
	buf2d_clear dd sz_buf2d_clear
971
	buf2d_draw dd sz_buf2d_draw
1022
	buf2d_draw dd sz_buf2d_draw
-
 
1023
	buf2d_delete dd sz_buf2d_delete
972
	buf2d_delete dd sz_buf2d_delete
1024
	buf2d_resize dd sz_buf2d_resize
973
	buf2d_line dd sz_buf2d_line
1025
	buf2d_line dd sz_buf2d_line
974
	buf2d_rect_by_size dd sz_buf2d_rect_by_size
1026
	buf2d_rect_by_size dd sz_buf2d_rect_by_size
975
	buf2d_filled_rect_by_size dd sz_buf2d_filled_rect_by_size
1027
	buf2d_filled_rect_by_size dd sz_buf2d_filled_rect_by_size
976
	buf2d_circle dd sz_buf2d_circle
1028
	buf2d_circle dd sz_buf2d_circle
Line 993... Line 1045...
993
	sz_buf2d_create db 'buf2d_create',0
1045
	sz_buf2d_create db 'buf2d_create',0
994
	sz_buf2d_create_f_img db 'buf2d_create_f_img',0
1046
	sz_buf2d_create_f_img db 'buf2d_create_f_img',0
995
	sz_buf2d_clear db 'buf2d_clear',0
1047
	sz_buf2d_clear db 'buf2d_clear',0
996
	sz_buf2d_draw db 'buf2d_draw',0
1048
	sz_buf2d_draw db 'buf2d_draw',0
997
	sz_buf2d_delete db 'buf2d_delete',0
1049
	sz_buf2d_delete db 'buf2d_delete',0
-
 
1050
	sz_buf2d_resize db 'buf2d_resize',0
998
	sz_buf2d_line db 'buf2d_line',0
1051
	sz_buf2d_line db 'buf2d_line',0
999
	sz_buf2d_rect_by_size db 'buf2d_rect_by_size',0
1052
	sz_buf2d_rect_by_size db 'buf2d_rect_by_size',0
1000
	sz_buf2d_filled_rect_by_size db 'buf2d_filled_rect_by_size',0
1053
	sz_buf2d_filled_rect_by_size db 'buf2d_filled_rect_by_size',0
1001
	sz_buf2d_circle db 'buf2d_circle',0
1054
	sz_buf2d_circle db 'buf2d_circle',0
1002
	sz_buf2d_img_hdiv2 db 'buf2d_img_hdiv2',0
1055
	sz_buf2d_img_hdiv2 db 'buf2d_img_hdiv2',0
Line 1094... Line 1147...
1094
align 16
1147
align 16
1095
procinfo process_information 
1148
procinfo process_information 
Line 1096... Line 1149...
1096
 
1149
 
1097
align 4
1150
align 4
1098
buf_0: dd 0 ;㪠§ â¥«ì ­  ¡ãä¥à ¨§®¡à ¦¥­¨ï
1151
buf_0: dd 0 ;㪠§ â¥«ì ­  ¡ãä¥à ¨§®¡à ¦¥­¨ï
1099
	dw 205 ;+4 left
1152
.l: dw 205 ;+4 left
1100
	dw 35 ;+6 top
1153
	dw 35 ;+6 top
1101
.w: dd 340 ;+8 w
1154
.w: dd 340 ;+8 w
1102
.h: dd 250 ;+12 h
1155
.h: dd 250 ;+12 h
1103
.color: dd 0xffffd0 ;+16 color
1156
.color: dd 0xffffd0 ;+16 color
Line 1119... Line 1172...
1119
	w_scr_t1,0
1172
	w_scr_t1,0
Line 1120... Line 1173...
1120
 
1173
 
1121
align 4
1174
align 4
1122
w_scr_t1:
1175
w_scr_t1:
-
 
1176
.size_x     dw 16 ;+0
1123
.size_x     dw 16 ;+0
1177
.start_x    dw 0
1124
rb 2+2+2
1178
rb 2+2
1125
.btn_high   dd 15 ;+8
1179
.btn_high   dd 15 ;+8
1126
.type	    dd 1  ;+12
1180
.type	    dd 1  ;+12
1127
.max_area   dd 100  ;+16
1181
.max_area   dd 100  ;+16
1128
rb 4+4
1182
rb 4+4