Subversion Repositories Kolibri OS

Rev

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

Rev 2354 Rev 3353
Line 466... Line 466...
466
 
466
 
467
@@: 
467
@@: 
468
	imul	eax,sb_cur_area
468
	imul	eax,sb_cur_area
469
	xor	edx,edx
469
	xor	edx,edx
-
 
470
	div	ebx
-
 
471
	shl	edx,1
-
 
472
	cmp	edx,ebx
-
 
473
	jb	@f
-
 
474
	
-
 
475
	inc	eax
-
 
476
	
470
	div	ebx
477
@@:
471
	cmp	eax,10
478
	cmp	eax,10
472
	jae	@f
479
	jae	@f
473
	mov	eax,10
480
	mov	eax,10
474
@@:
481
@@:
Line 487... Line 494...
487
@@:
494
@@:
488
	sub	ebx,sb_cur_area
495
	sub	ebx,sb_cur_area
489
	imul	eax,sb_position
496
	imul	eax,sb_position
490
	xor	edx,edx
497
	xor	edx,edx
491
	div	ebx
498
	div	ebx
-
 
499
	shl	edx,1
-
 
500
	cmp	edx,ebx
-
 
501
	jb	@f
-
 
502
	
-
 
503
	inc	eax
-
 
504
	
-
 
505
@@:
492
.@@_1:
506
.@@_1:
493
	mov	sb_position2,eax
507
	mov	sb_position2,eax
494
	xor	edx,edx
508
	xor	edx,edx
495
	mov	dx,sb_size_y
509
	mov	dx,sb_size_y
496
	sub	edx,sb_btn_high
510
	sub	edx,sb_btn_high
Line 972... Line 986...
972
	
986
	
Line 973... Line 987...
973
	xor	eax,eax
987
	xor	eax,eax
974
	
988
	
-
 
989
@@:
-
 
990
.store_position:
-
 
991
	mov	edx,sb_max_area
-
 
992
	sub	edx,sb_cur_area
-
 
993
	cmp	edx,eax
-
 
994
	ja	@f
-
 
995
 
-
 
996
	mov	sb_position,edx
-
 
997
	jmp	.all_sb
975
@@:
998
 
976
.store_position:
999
@@:
977
	mov	sb_position,eax
1000
	mov	sb_position,eax
978
.all_sb:
1001
.all_sb:
979
	mov	sb_redraw,dword 1
1002
	mov	sb_redraw,dword 1
Line 1044... Line 1067...
1044
 
1067
 
1045
@@: 
1068
@@: 
1046
	imul	eax,sb_cur_area
1069
	imul	eax,sb_cur_area
1047
	xor	edx,edx
1070
	xor	edx,edx
-
 
1071
	div	ebx
-
 
1072
	shl	edx,1
-
 
1073
	cmp	edx,ebx
-
 
1074
	jb	@f
-
 
1075
	
-
 
1076
	inc	eax
-
 
1077
	
1048
	div	ebx
1078
@@:
1049
	cmp	eax,10
1079
	cmp	eax,10
1050
	jae	@f
1080
	jae	@f
1051
	mov	eax,10
1081
	mov	eax,10
1052
@@:
1082
@@:
Line 1065... Line 1095...
1065
@@:
1095
@@:
1066
	sub	ebx,sb_cur_area
1096
	sub	ebx,sb_cur_area
1067
	imul	eax,sb_position
1097
	imul	eax,sb_position
1068
	xor	edx,edx
1098
	xor	edx,edx
1069
	div	ebx
1099
	div	ebx
-
 
1100
	shl	edx,1
-
 
1101
	cmp	edx,ebx
-
 
1102
	jb	@f
-
 
1103
	
-
 
1104
	inc	eax
-
 
1105
	
-
 
1106
@@:
1070
.@@_1:
1107
.@@_1:
1071
	mov	sb_position2,eax
1108
	mov	sb_position2,eax
1072
	xor	edx,edx
1109
	xor	edx,edx
1073
	mov	dx,sb_size_x
1110
	mov	dx,sb_size_x
1074
	sub	edx,sb_btn_high
1111
	sub	edx,sb_btn_high
Line 1558... Line 1595...
1558
	
1595
	
Line 1559... Line 1596...
1559
	xor	eax,eax
1596
	xor	eax,eax
1560
	
1597
	
-
 
1598
@@:
-
 
1599
.store_position:
-
 
1600
	mov	edx,sb_max_area
-
 
1601
	sub	edx,sb_cur_area
-
 
1602
	cmp	edx,eax
-
 
1603
	ja	@f
-
 
1604
 
-
 
1605
	mov	sb_position,edx
-
 
1606
	jmp	.all_sb
1561
@@:
1607
 
1562
.store_position:
1608
@@:
1563
	mov	sb_position,eax
1609
	mov	sb_position,eax
1564
.all_sb:
1610
.all_sb:
1565
	mov	sb_redraw,dword 1
1611
	mov	sb_redraw,dword 1