Rev 1666 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1666 | Rev 2317 | ||
---|---|---|---|
Line 440... | Line 440... | ||
440 | mov edx,sb_frnt_col |
440 | mov edx,sb_frnt_col |
441 | int 0x40 ; runner filling |
441 | int 0x40 ; runner filling |
442 | ;********************************* |
442 | ;********************************* |
443 | draw_runner_center_vertical |
443 | draw_runner_center_vertical |
444 | ;********************************* |
444 | ;********************************* |
- | 445 | cmp word sb_type,1 |
|
- | 446 | jne @f |
|
- | 447 | push eax ebx ecx edx |
|
- | 448 | movzx eax,word sb_start_x |
|
- | 449 | xor ebx,ebx |
|
- | 450 | add bx,sb_r_start_y |
|
- | 451 | dec ebx |
|
- | 452 | movzx ecx,word sb_size_x |
|
- | 453 | mov edx,sb_run_size |
|
- | 454 | dec edx |
|
- | 455 | ;à¨á®¢ ¨¥ á⨫쮩 à ¬ª¨ ¯®«§ãª¥ |
|
- | 456 | stdcall draw_edge, eax,ebx,ecx,edx, sb_bckg_col, sb_frnt_col, sb_line_col |
|
- | 457 | pop edx ecx ebx eax |
|
- | 458 | @@: |
|
445 | shr ecx,16 |
459 | shr ecx,16 |
446 | add ecx,sb_run_size |
460 | add ecx,sb_run_size |
447 | sub ecx,2 |
461 | sub ecx,2 |
448 | shl ecx,16 |
462 | shl ecx,16 |
449 | inc ecx |
463 | inc ecx |
Line 499... | Line 513... | ||
499 | mov edx,sb_line_col |
513 | mov edx,sb_line_col |
500 | mov cx,1 |
514 | mov cx,1 |
501 | cmp dword sb_all_redraw,0 |
515 | cmp dword sb_all_redraw,0 |
502 | je @f |
516 | je @f |
503 | int 0x40 ; bottom button - extreme line |
517 | int 0x40 ; bottom button - extreme line |
- | 518 | cmp word sb_type,1 |
|
- | 519 | jne @f |
|
- | 520 | movzx eax,word sb_start_x |
|
- | 521 | movzx ebx,word sb_start_y |
|
- | 522 | movzx ecx,word sb_size_x |
|
- | 523 | ;à¨á®¢ ¨¥ á⨫쮩 à ¬ª¨ ¢¥à奩 ª®¯ª¥ |
|
- | 524 | stdcall draw_edge, eax,ebx,ecx,sb_btn_high,\ |
|
- | 525 | sb_bckg_col, sb_frnt_col, sb_line_col |
|
- | 526 | ||
- | 527 | add bx,sb_size_y |
|
- | 528 | sub ebx,sb_btn_high |
|
- | 529 | dec ebx |
|
- | 530 | ;à¨á®¢ ¨¥ á⨫쮩 à ¬ª¨ ¨¦¥© ª®¯ª¥ |
|
- | 531 | stdcall draw_edge, eax,ebx,ecx,sb_btn_high,\ |
|
- | 532 | sb_bckg_col, sb_frnt_col, sb_line_col |
|
504 | @@: |
533 | @@: |
505 | popa |
534 | popa |
506 | ret |
535 | ret |
507 | ;***************************************************************************** |
536 | ;***************************************************************************** |
508 | ;***************************************************************************** |
537 | ;***************************************************************************** |
Line 964... | Line 993... | ||
964 | mov edx,sb_frnt_col |
993 | mov edx,sb_frnt_col |
965 | int 0x40 ; runner filling |
994 | int 0x40 ; runner filling |
966 | ;********************************* |
995 | ;********************************* |
967 | draw_runner_center_horizontal |
996 | draw_runner_center_horizontal |
968 | ;********************************* |
997 | ;********************************* |
- | 998 | cmp word sb_type,1 |
|
- | 999 | jne @f |
|
- | 1000 | push eax ebx ecx edx |
|
- | 1001 | xor eax,eax |
|
- | 1002 | add ax,sb_r_start_x |
|
- | 1003 | dec eax |
|
- | 1004 | movzx ebx,word sb_start_y |
|
- | 1005 | mov ecx,sb_run_size |
|
- | 1006 | dec ecx |
|
- | 1007 | movzx edx,word sb_size_y |
|
- | 1008 | ;à¨á®¢ ¨¥ á⨫쮩 à ¬ª¨ ¯®«§ãª¥ |
|
- | 1009 | stdcall draw_edge, eax,ebx,ecx,edx,\ |
|
- | 1010 | sb_bckg_col, sb_frnt_col, sb_line_col |
|
- | 1011 | pop edx ecx ebx eax |
|
- | 1012 | @@: |
|
- | 1013 | ||
969 | shr ebx,16 |
1014 | shr ebx,16 |
970 | add ebx,sb_run_size |
1015 | add ebx,sb_run_size |
971 | sub ebx,2 |
1016 | sub ebx,2 |
972 | shl ebx,16 |
1017 | shl ebx,16 |
973 | inc ebx |
1018 | inc ebx |
Line 1023... | Line 1068... | ||
1023 | mov edx,sb_line_col |
1068 | mov edx,sb_line_col |
1024 | mov bx,1 |
1069 | mov bx,1 |
1025 | cmp dword sb_all_redraw,0 |
1070 | cmp dword sb_all_redraw,0 |
1026 | je @f |
1071 | je @f |
1027 | int 0x40 ; bottom button - extreme line |
1072 | int 0x40 ; bottom button - extreme line |
- | 1073 | cmp word sb_type,1 |
|
- | 1074 | jne @f |
|
- | 1075 | ;à¨á®¢ ¨¥ á⨫쮩 à ¬ª¨ «¥¢®© ª®¯ª¥ |
|
- | 1076 | movzx eax,word sb_start_x |
|
- | 1077 | movzx ebx,word sb_start_y |
|
- | 1078 | movzx edx,word sb_size_y |
|
- | 1079 | stdcall draw_edge, eax,ebx,sb_btn_high,edx,\ |
|
- | 1080 | sb_bckg_col, sb_frnt_col, sb_line_col |
|
- | 1081 | ||
- | 1082 | movzx eax,word sb_start_x |
|
- | 1083 | add ax,sb_size_x |
|
- | 1084 | sub eax,sb_btn_high |
|
- | 1085 | dec eax |
|
- | 1086 | ;à¨á®¢ ¨¥ á⨫쮩 à ¬ª¨ ¯à ¢®© ª®¯ª¥ |
|
- | 1087 | stdcall draw_edge, eax,ebx,sb_btn_high,edx,\ |
|
- | 1088 | sb_bckg_col, sb_frnt_col, sb_line_col |
|
1028 | @@: |
1089 | @@: |
1029 | popa |
1090 | popa |
1030 | ret |
1091 | ret |
1031 | ;***************************************************************************** |
1092 | ;***************************************************************************** |
1032 | ; mouse event |
1093 | ; mouse event |