Subversion Repositories Kolibri OS

Rev

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

Rev 1609 Rev 1619
Line 916... Line 916...
916
	mov edx,[sc.work]
916
	mov edx,[sc.work]
917
	;or edx,0x33000000
917
	;or edx,0x33000000
918
	or edx,0x73000000
918
	or edx,0x73000000
919
	mov edi,hed
919
	mov edi,hed
920
	mcall ;ᮧ¤ ­¨¥ ®ª­ 
920
	mcall ;ᮧ¤ ­¨¥ ®ª­ 
-
 
921
	mcall 9,procinfo,-1
Line 921... Line 922...
921
 
922
 
922
	cmp byte[game_select_mode],0
923
	cmp byte[game_select_mode],0
Line 923... Line -...
923
	jne .select_mode
-
 
924
 
924
	jne .select_mode
925
	mcall 9,procinfo,-1
925
 
926
	mov edi,buf_displ
926
	mov edi,buf_displ
927
	mov eax,dword[procinfo.client_box.width]
927
	mov eax,dword[procinfo.client_box.width]
928
	cmp eax,dword[displ_w]
928
	cmp eax,dword[displ_w]
Line 1013... Line 1013...
1013
	int 0x40 ;à¨á®¢ ­¨¥ «¥¢®£® ¡®ª®¢®£® ¯®«ï
1013
	int 0x40 ;à¨á®¢ ­¨¥ «¥¢®£® ¡®ª®¢®£® ¯®«ï
Line 1014... Line 1014...
1014
 
1014
 
1015
	jmp @f
1015
	jmp @f
1016
	.select_mode:
1016
	.select_mode:
-
 
1017
		stdcall dword[tl_draw],dword tree1
-
 
1018
		mov edi,tree1
-
 
1019
		add edi,tl_offs_box
1017
		stdcall dword[tl_draw],dword tree1
1020
		stdcall draw_rect_border, procinfo.client_box, edi
Line 1018... Line 1021...
1018
	@@:
1021
	@@:
1019
 
1022
 
1020
	mcall 12,2
1023
	mcall 12,2
Line -... Line 1024...
-
 
1024
	popad
-
 
1025
	ret
-
 
1026
 
-
 
1027
; äã­ªæ¨ï à¨áã¥â ¯®«ï ¢®ªà㣠¯àאַ㣮«ì­¨ª  user_box
-
 
1028
; à §¬¥à ¯®«¥© ¢ëç¨á«ï¥âáï ¨áå®¤ï ¨§ à §¬¥à®¢ client_rect
-
 
1029
; ¯à¥¤¯®« £ ¥âáï, çâ® ¢ ¡®«ì設á⢥ á«ãç ¥¢ client_rect > user_box
-
 
1030
align 4
-
 
1031
proc draw_rect_border, client_rect:dword, user_box:dword
-
 
1032
	pushad
-
 
1033
	mov edi,dword[client_rect]
-
 
1034
	mov esi,dword[user_box]
-
 
1035
	cmp esi,0
-
 
1036
	je @f
-
 
1037
		mov ebx,dword[edi+8] ;+8 = width
-
 
1038
		inc bx
-
 
1039
		mov ecx,dword[esi+4] ;+4 = top
-
 
1040
		mov edx,[sc.work]
-
 
1041
		mov eax,13
-
 
1042
		int 0x40 ;top
-
 
1043
 
-
 
1044
		mov eax,dword[esi+4] ;+4 = top
-
 
1045
		add eax,dword[esi+12] ;+12 = height
-
 
1046
		cmp eax,dword[edi+12]
-
 
1047
		jge .no_bottom
-
 
1048
			mov ecx,eax
-
 
1049
			shl ecx,16
-
 
1050
			mov cx,word[edi+12] ;+12 = bottom
-
 
1051
			inc cx
-
 
1052
			sub cx,ax
-
 
1053
			mov eax,13
-
 
1054
			int 0x40 ;bottom
-
 
1055
		.no_bottom:
-
 
1056
 
-
 
1057
		mov ebx,dword[esi] ;+0 left
-
 
1058
		mov ecx,dword[esi+4] ;+4 = top
-
 
1059
		shl ecx,16
-
 
1060
		mov cx,word[esi+12] ;+12 = height
-
 
1061
		inc cx 
-
 
1062
		mov eax,13
-
 
1063
		int 0x40 ;left
-
 
1064
 
-
 
1065
		mov eax,dword[esi] ;+0 left
-
 
1066
		add eax,dword[esi+8] ;+8 = width
-
 
1067
		mov ebx,eax
-
 
1068
		shl ebx,16
-
 
1069
		mov bx,word[edi+8] ;+8 = right
-
 
1070
		sub bx,ax
-
 
1071
		inc bx
-
 
1072
		mov eax,13
-
 
1073
		int 0x40 ;right
-
 
1074
	@@:
-
 
1075
	popad
1021
	popad
1076
	ret
1022
	ret
1077
endp
Line 1023... Line 1078...
1023
 
1078
 
1024
align 4
1079
align 4
Line 1166... Line 1221...
1166
last_time dd ?
1221
last_time dd ?
1167
image_data dd 0 ;¯ ¬ïâì ¤«ï ¯à¥®¡à §®¢ ­¨ï ª à⨭ª¨ äã­ªæ¨ï¬¨ libimg
1222
image_data dd 0 ;¯ ¬ïâì ¤«ï ¯à¥®¡à §®¢ ­¨ï ª à⨭ª¨ äã­ªæ¨ï¬¨ libimg
1168
image_data_gray dd 0 ;¯ ¬ïâì á ¢à¥¬¥­­ë¬¨ á¥à묨 ¨§®¡à ¦¥­¨ï¬¨ ¢ ä®à¬ â¥ 24-bit, ¨§ ª®â®àëå ¡ã¤ãâ ᮧ¤ ¢ âìáï âà ä à¥âë
1223
image_data_gray dd 0 ;¯ ¬ïâì á ¢à¥¬¥­­ë¬¨ á¥à묨 ¨§®¡à ¦¥­¨ï¬¨ ¢ ä®à¬ â¥ 24-bit, ¨§ ª®â®àëå ¡ã¤ãâ ᮧ¤ ¢ âìáï âà ä à¥âë
Line 1169... Line 1224...
1169
 
1224
 
1170
run_file_70 FileInfoBlock
1225
run_file_70 FileInfoBlock
1171
hed db 'Nu pogodi 08.09.10',0 ;¯®¤¯¨áì ®ª­ 
1226
hed db 'Nu pogodi 17.09.10',0 ;¯®¤¯¨áì ®ª­ 
Line 1172... Line 1227...
1172
sc system_colors  ;á¨á⥬­ë¥ 梥â 
1227
sc system_colors  ;á¨á⥬­ë¥ 梥â 
1173
 
1228
 
1174
count_of_dir_list_files equ 10
1229
count_of_dir_list_files equ 10