KelvinShadewing / brux-gdk

Free runtime and development kit using SDL and Squirrel
GNU Affero General Public License v3.0
39 stars 20 forks source link

Working on non-zero-starting and non-monospace fonts #15

Open KelvinShadewing opened 5 years ago

KelvinShadewing commented 5 years ago

I got monospace bitmap fonts working, but with a limitation: if the font started at a non-zero number and the script attempts to draw a character that's before the font's starting character, it would segfault. I added a skip that was meant to make it ignore characters before the starting character, but it still happened, and now, I can't even get it to run at all without immediately crashing. I even tried to go back to a previous version of the code that did work, and it still doesn't work! I don't know what I did wrong, I don't know how to get it working again, and I'm still no closer to fixing drawing text with fonts that don't start at null.

KelvinShadewing commented 5 years ago

OK, so I fixed the segfault issue... sort of. A call to SDL_QueryTexture was causing them, though I don't know why it's just now starting to do this, and now that I think about it, I don't remember why I was using it in the first place. If I find a need for it, I've only commented it out for now, but now the big issue is fixing what's in the new title.