Page 1 of 1

VGA Driver Bug

Posted: Tue Oct 16, 2018 8:04 pm
by bgg
I have been switching away from text mode and have started using VGA 320x200x256 as the main screen. But while I was implementing drawing methods, this little bug showed itself.
Image
I was going to just add one extra pixel to my rectangle method, but I could be looking over something way worse. Anyone have an idea of what is going on?
(VGA Driver Code)
https://pastebin.com/48MuAtJW

Re: VGA Driver Bug

Posted: Tue Oct 16, 2018 9:20 pm
by alexfru
Missing a couple of -1's in rectangle().
Also incorrectly checking the ranges in setp(). Same problem: off by one.