Rev 5579 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5579 | Rev 5838 | ||
---|---|---|---|
Line 10... | Line 10... | ||
10 | pushd [cur_editor.Bounds.Left] ecx [cur_editor.Bounds.Right] ecx |
10 | pushd [cur_editor.Bounds.Left] ecx [cur_editor.Bounds.Right] ecx |
11 | popd [__rc+0xC] [__rc+0x8] [__rc+0x4] [__rc+0x0] |
11 | popd [__rc+0xC] [__rc+0x8] [__rc+0x4] [__rc+0x0] |
12 | sub [__rc+0x8],SCRLW+6 |
12 | sub [__rc+0x8],SCRLW+6 |
13 | mov ecx,[cur_editor.Gutter.Width] |
13 | mov ecx,[cur_editor.Gutter.Width] |
14 | add [__rc+0x0],ecx |
14 | add [__rc+0x0],ecx |
15 | imul ecx,[lines.scr],LINEH |
15 | mov ecx,[lines.scr] |
- | 16 | imul ecx,[lineHeight] |
|
16 | dec ecx |
17 | dec ecx |
17 | add [__rc+0xC],ecx |
18 | add [__rc+0xC],ecx |
18 | mov ecx,__rc |
19 | mov ecx,__rc |
19 | call pt_in_rect |
20 | call pt_in_rect |
20 | ret |
21 | ret |
Line 186... | Line 187... | ||
186 | sub eax,LCHGW |
187 | sub eax,LCHGW |
187 | sub ebx,2 |
188 | sub ebx,2 |
188 | push eax |
189 | push eax |
189 | mov eax,ebx |
190 | mov eax,ebx |
190 | cdq |
191 | cdq |
191 | mov ecx,LINEH |
192 | mov ecx,[lineHeight] |
192 | idiv ecx |
193 | idiv ecx |
193 | @@: add eax,[cur_editor.TopLeft.Y] |
194 | @@: add eax,[cur_editor.TopLeft.Y] |
194 | mov ebx,eax |
195 | mov ebx,eax |
195 | pop eax |
196 | pop eax |
196 | cdq |
197 | cdq |
197 | mov ecx,6 |
198 | mov ecx,[charWidth] |
198 | idiv ecx |
199 | idiv ecx |
199 | @@: add eax,[cur_editor.TopLeft.X] |
200 | @@: add eax,[cur_editor.TopLeft.X] |
200 | mov ecx, ebx |
201 | mov ecx, ebx |
201 | call get_line_offset |
202 | call get_line_offset |
202 | cmp eax,[esi] |
203 | cmp eax,[esi] |