Rev 297 | Rev 617 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 297 | Rev 312 | ||
---|---|---|---|
Line 45... | Line 45... | ||
45 | btn.vscroll_up: |
45 | btn.vscroll_up: |
46 | dec [cur_editor.TopLeft.Y] |
46 | dec [cur_editor.TopLeft.Y] |
47 | jns @f |
47 | jns @f |
48 | inc [cur_editor.TopLeft.Y] |
48 | inc [cur_editor.TopLeft.Y] |
49 | ret |
49 | ret |
50 | @@: call editor_check_for_changes |
50 | @@: call editor_check_for_changes.direct |
51 | ret |
51 | ret |
Line 52... | Line 52... | ||
52 | 52 | ||
53 | btn.vscroll_down: |
53 | btn.vscroll_down: |
54 | inc [cur_editor.TopLeft.Y] |
54 | inc [cur_editor.TopLeft.Y] |
55 | mov eax,[cur_editor.Lines.Count] |
55 | mov eax,[cur_editor.Lines.Count] |
56 | sub eax,[lines.scr] |
56 | sub eax,[lines.scr] |
57 | cmp eax,[cur_editor.TopLeft.Y] |
57 | cmp eax,[cur_editor.TopLeft.Y] |
58 | jge @f |
58 | jge @f |
59 | dec [cur_editor.TopLeft.Y] |
59 | dec [cur_editor.TopLeft.Y] |
60 | ret |
60 | ret |
61 | @@: call editor_check_for_changes |
61 | @@: call editor_check_for_changes.direct |
Line 62... | Line 62... | ||
62 | ret |
62 | ret |
63 | 63 | ||
64 | btn.hscroll_up: |
64 | btn.hscroll_up: |
65 | dec [cur_editor.TopLeft.X] |
65 | dec [cur_editor.TopLeft.X] |
66 | jns @f |
66 | jns @f |
67 | inc [cur_editor.TopLeft.X] |
67 | inc [cur_editor.TopLeft.X] |
68 | ret |
68 | ret |
Line 69... | Line 69... | ||
69 | @@: call editor_check_for_changes |
69 | @@: call editor_check_for_changes.direct |
70 | ret |
70 | ret |
71 | 71 | ||
72 | btn.hscroll_down: |
72 | btn.hscroll_down: |
73 | inc [cur_editor.TopLeft.X] |
73 | inc [cur_editor.TopLeft.X] |
74 | mov eax,[cur_editor.Columns.Count] |
74 | mov eax,[cur_editor.Columns.Count] |
75 | sub eax,[columns.scr] |
75 | sub eax,[columns.scr] |
76 | cmp eax,[cur_editor.TopLeft.X] |
76 | cmp eax,[cur_editor.TopLeft.X] |
77 | jge @f |
77 | jge @f |
78 | dec [cur_editor.TopLeft.X] |
78 | dec [cur_editor.TopLeft.X] |
Line 79... | Line 79... | ||
79 | ret |
79 | ret |
80 | @@: call editor_check_for_changes |
80 | @@: call editor_check_for_changes.direct |
81 | ret |
81 | ret |