Subversion Repositories Kolibri OS

Rev

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

Rev 4236 Rev 5878
Line 1390... Line 1390...
1390
	ret
1390
	ret
1391
;---------------------------------------------------------------------
1391
;---------------------------------------------------------------------
1392
draw_window:
1392
draw_window:
Line 1393... Line 1393...
1393
 
1393
 
1394
	mcall	12,1
-
 
1395
	
1394
	mcall	12,1
1396
	call	prepare_system_colors
-
 
1397
 
-
 
1398
;	mcall	0,<10,420>,<10,320>,0x63AABBCC,
1395
	call	prepare_system_colors
1399
	xor	esi,esi
-
 
1400
;	mov	edx,[w_work]	; color of work area RRGGBB,8->color
-
 
1401
;	or	edx,0x63000000
1396
	xor	esi,esi
1402
	mcall	0,[window_x],[window_y],0x63AABBCC
-
 
1403
 
-
 
1404
;	mov	ecx,[communication_area]
-
 
1405
;	add	ecx,4096+4+4
1397
	mcall	0,[window_x],[window_y],0x63AABBCC
1406
	call	type_title
1398
	call	type_title
1407
	call	get_window_param
-
 
1408
	
1399
	call	get_window_param
1409
	mov	eax,[procinfo+70] ;status of window
1400
	mov	eax,[procinfo+70] ;status of window
1410
	test	eax,100b
1401
	test	eax,100b
Line 1411... Line 1402...
1411
	jne	.end
1402
	jne	.end
1412
	
1403
 
1413
	mov	eax,[window_high]
1404
	mov	eax,[window_high]
1414
	sub	eax,25+45
1405
	sub	eax,25+45
1415
	mov	[file_browser_data_1.size_y],ax
-
 
1416
	mov	[scroll_bar_data_vertical.size_y],ax
1406
	mov	[file_browser_data_1.size_y],ax
1417
	
1407
	mov	[scroll_bar_data_vertical.size_y],ax
1418
	mov	eax,[window_width]
1408
	mov	eax,[window_width]
1419
	sub	eax,10+20
1409
	sub	eax,10+20
1420
	mov	[file_browser_data_1.size_x],ax
1410
	mov	[file_browser_data_1.size_x],ax
1421
	add	ax,10
-
 
1422
	mov	[scroll_bar_data_vertical.start_x],ax
1411
	add	ax,10
1423
	
1412
	mov	[scroll_bar_data_vertical.start_x],ax
1424
	mov	edx,[w_work]	; color of work area RRGGBB,8->color
1413
	mov	edx,[w_work]	; color of work area RRGGBB,8->color
Line 1425... Line 1414...
1425
	or	edx,0x63000000
1414
	or	edx,0x63000000
Line 1465... Line 1454...
1465
	add	ebx,eax
1454
	add	ebx,eax
1466
	mov	eax,50
1455
	mov	eax,50
1467
	mov	bx,ax
1456
	mov	bx,ax
1468
	shl	eax,16
1457
	shl	eax,16
1469
	sub	ebx,eax
1458
	sub	ebx,eax
1470
	mov	ecx,26 shl 16+15
1459
	mov	ecx,25 shl 16 + 16
1471
 
-
 
1472
	mcall	8,,,2,[w_work_button]	;0xffffff
1460
	mcall	8,,,2,[w_work_button]	;0xffffff
Line 1473... Line 1461...
1473
 
1461
 
1474
	pusha
1462
	pusha
1475
	shr	ecx,16
1463
	shr	ecx,16
1476
	mov	bx,cx
1464
	mov	bx,cx
1477
	add	ebx,20 shl 16+2
1465
	add	ebx,21 shl 16
1478
	mov	ecx,[w_work_button_text]
1466
	mov	ecx,[w_work_button_text]
1479
	or	ecx,0x90000000
1467
	or	ecx,0x90000000
1480
	mcall	4,,,message_ExitDir_button
1468
	mcall	4,,,message_ExitDir_button
1481
	add	ebx,4
1469
	add	ebx,4
Line 1489... Line 1477...
1489
	mov	bx,60
1477
	mov	bx,60
1490
	mcall	8,,,6
1478
	mcall	8,,,6
Line 1491... Line 1479...
1491
 
1479
 
1492
	shr	ecx,16
1480
	shr	ecx,16
1493
	mov	bx,cx
1481
	mov	bx,cx
1494
	add	ebx,5 shl 16+4
1482
	add	ebx,2 shl 16
1495
	mov	ecx,[w_work_button_text]
1483
	mov	ecx,[w_work_button_text]
1496
	or	ecx,0x90000000
1484
	or	ecx,0x90000000
1497
	mcall	4,,,message_ReloadDir_button
1485
	mcall	4,,,message_ReloadDir_button
Line 1498... Line 1486...
1498
	pop	ebx
1486
	pop	ebx
1499
 
-
 
1500
	mov	ebx,[file_browser_data_1.x]
1487
 
1501
	
1488
	mov	ebx,[file_browser_data_1.x]
1502
	mov	ax,bx
1489
	mov	ax,bx
1503
	shl	eax,16
1490
	shl	eax,16
1504
	add	ebx,eax
1491
	add	ebx,eax
1505
	mov	eax,55
1492
	mov	eax,55
1506
	mov	bx,ax
1493
	mov	bx,ax
1507
	shl	eax,16
-
 
1508
	sub	ebx,eax
1494
	shl	eax,16
1509
 
1495
	sub	ebx,eax
1510
	mov	ecx,[file_browser_data_1.y]
1496
	mov	ecx,[file_browser_data_1.y]
1511
	mov	ax,cx
1497
	mov	ax,cx
1512
	add	eax,3
1498
	add	eax,3
1513
	shl	eax,16
1499
	shl	eax,16
1514
	add	ecx,eax
-
 
1515
	mov	cx,15
1500
	add	ecx,eax
Line 1516... Line 1501...
1516
 
1501
	mov	cx,16
1517
	mcall	8,,,3
-
 
1518
 
1502
	mcall	8,,,3
1519
	pusha
1503
 
1520
 
1504
	pusha
1521
	shr	ecx,16
1505
	shr	ecx,16
1522
	mov	bx,cx
1506
	mov	bx,cx
1523
	add	ebx,6 shl 16+ 4
1507
	add	ebx,4 shl 16
1524
	mov	ecx,[w_work_button_text]
1508
	mov	ecx,[w_work_button_text]
Line 1525... Line 1509...
1525
	or	ecx,0x90000000
1509
	or	ecx,0x90000000
1526
	mcall	4,,,message_cancel_button
1510
	mcall	4,,,message_cancel_button
Line 1527... Line 1511...
1527
	popa
1511
	popa
1528
 
1512
 
1529
	sub	ebx,65 shl 16
1513
	sub	ebx,65 shl 16
1530
	mcall	8,,,4
-
 
1531
	
1514
	mcall	8,,,4
1532
	shr	ecx,16
1515
 
1533
	mov	bx,cx
1516
	shr	ecx,16
1534
	add	ebx,6 shl 16+4
1517
	mov	bx,cx
1535
	
1518
	add	ebx,4 shl 16
1536
	mov	edx,[open_dialog_type]
1519
	mov	edx,[open_dialog_type]
1537
	shl	edx,2
1520
	shl	edx,2
Line 1538... Line 1521...
1538
	add	edx,message_open_dialog_button
1521
	add	edx,message_open_dialog_button
1539
	mov	edx,[edx]
1522
	mov	edx,[edx]
Line 1560... Line 1543...
1560
;--------------------------------------
1543
;--------------------------------------
1561
	mov	[open_button_coordinates],ebx
1544
	mov	[open_button_coordinates],ebx
1562
	mov	ecx,[w_work_button_text]
1545
	mov	ecx,[w_work_button_text]
1563
	or	ecx,0x90000000
1546
	or	ecx,0x90000000
1564
	mcall	4	;message_open_button
1547
	mcall	4	;message_open_button
1565
	
-
 
1566
;	mcall	47,0x80000,[file_browser_data_1.ini_file_start],<250,0>,0x0
-
 
1567
;	mcall	4,<3,420>,0,fb_extension_start,3
-
 
1568
.end:
1548
.end:
1569
	mcall	12,2
1549
	mcall	12,2
1570
 
-
 
1571
	ret
1550
	ret
1572
;---------------------------------------------------------------------
1551
;---------------------------------------------------------------------
1573
draw_open_button_label:
1552
draw_open_button_label:
1574
	cmp	[do_not_draw_open_button_label],1
1553
	cmp	[do_not_draw_open_button_label],1
1575
	je	.exit_1	
1554
	je	.exit_1 
Line 1743... Line 1722...
1743
 
1722
 
Line 1744... Line 1723...
1744
	mcall	8,,,5,[w_work_button]	;0xffffff
1723
	mcall	8,,,5,[w_work_button]	;0xffffff
1745
 
1724
 
1746
	shr	ecx,16
1725
	shr	ecx,16
1747
	mov	bx,cx
1726
	mov	bx,cx
1748
	add	ebx,4 shl 16+4
1727
	add	ebx,4 shl 16
1749
	mov	ecx,[w_work_button_text]
1728
	mov	ecx,[w_work_button_text]
Line 1750... Line 1729...
1750
	add	ecx,0x90000000
1729
	add	ecx,0x90000000