Closed Fabrizio-Caruso closed 2 years ago
Ahhh, good call. Submit a pull request and I'll merge it.
Yeah, to do a merge request, you have to create a fork, then do the fix in your fork. Once it's tested, you can then request a pull request back into the original.
I realized I did not create my own fork. I am retrying with the PR.
I have made a tentative pull request: https://github.com/tursilion/libti99/pull/20
By the way the reason why I started looking in conio.h
is that I got (and still get after my "fix"):
I will try to reproduce it with a minimal example. If it is a real bug, I will open a different issue.
If it is a real bug, I will open a different issue.
Or you could just email me so I don't have to keep opening a web browser. I don't live on the web, it's a terrible, sticky place. ;)
Just because github supports "issues" doesn't mean we have to use them. Github supports lots of bad things. ;)
I'll need some kind of source from you to help, yes. Screenshots tell me nothing.
@tursilion, Of course the picture is not enough. I am trying to reproduce it. I would not ask you to fix things asap or any time soon. I only wanted to report a problem and provide a solution. I can send bug reports to you by mail. I won't open issues here if you don't want to. Sorry.
Thanks for the merge!
Issue appears to be failure to call vdp_setgraphics() to set up the screen size variables, for anyone reading this with a similar issue.
In https://github.com/tursilion/libti99/blob/main/conio.h#L77 I see a macro with two commands with no
do{...}while(0)
to protect it from being misinterpreted. This might explain why I get totally wrong results when I use it to display text.For example
is wrongly interpreted as
And you need
do
,while(0)
and not just braces, because it would fail with a syntax error in cases such asSo a solution would be to do:
In general I would do this on all macros, even the ones with one single command to be safe just in case I replace that command with a macro one day.