Page 1 of 1

Very strange text mode font problem

Posted: Sun Mar 19, 2006 2:08 am
by earlz
for some very strange after adding a master frame buffer(to prevent flicker) my font is screwed up until i reset the font 6-10 times and sometimes it is like only space is messed up or only a few characters

the wierd part is it works fine in virtual pc
could anyone tell me why this happens or even if they have experienced it before
btw
even writing straight to video memory is messed up



edit:
Actually it is a VBE extension problem, code works fine when i comment it out
maybe post a bug

Re:Very strange text mode font problem

Posted: Sun Mar 19, 2006 2:13 am
by Candy
Jordan3 wrote: for some very strange after adding a master frame buffer(to prevent flicker) my font is screwed up until i reset the font 6-10 times and sometimes it is like only space is messed up or only a few characters

the wierd part is it works fine in virtual pc
could anyone tell me why this happens or even if they have experienced it before
btw
even writing straight to video memory is messed up
Sounds like you store your font in some place that is being overwritten by something else. Specific ideas are that you're overrunning the font buffer because it's allocated too small, you're allocating it on the stack and return a pointer (and the stack is going to be overwritten), you got a pointer error or unchecked pointer somewhere that accidentally overwrites this (due to chance, is still pretty likely if you forgot to initialize a pointer). Last option could be an error in your memory manager, but I hope not.