vgmoose / vgedit

SDL text editor for homebrew'd video game consoles, with controller and touch screen support
GNU General Public License v3.0
71 stars 4 forks source link

Fix cursor position to align with text #3

Closed satelliteseeker closed 5 years ago

satelliteseeker commented 5 years ago

There is a bug in cursor renderer that causes the cursor to be incorrectly aligned to multiline text. A change in cursor y and height calculation will fix the issue.

Before: 2019081714455100-DB1426D1DFD034027CECDE9C2DD914B8

After: 2019081713345200-DB1426D1DFD034027CECDE9C2DD914B8

vgmoose commented 5 years ago

Thanks, looks like there are still a lot of issues with where the cursor is placed depending on the size of the file, the length of the lines of the file, and the contents, but this is an improvement