Page 1 of 1

video mode 12 (@ Beyond Infinity)

Posted: Fri Aug 01, 2003 5:40 am
by Pype.Clicker
beyond infinity wrote: I 'm still figuring out how this mode 12 drawing stuff has to be done and this goes slooooooow - I'm low on coffee *yawn*
afaik, each bit of the color code is on a separate bitplane. so pixel (x,y) has its data at 0xa000 + (x+y*640)/8, on the 7-(x%8) th bit.

imho, the best approach for a transparent behaviour would be to provide a virtual buffer in which you'll use 1 byte per pixel, and then periodically probing the "dirty" bit on those pages and refreshing the appropriated video pages by producing the right video values at once.

it's a bit ugly, but at least it gives the programs the feeling that they're dealing with a regular pixmap, not with a weird multi-plane stuff where protected ports must be used to switch bitplanes.

Re:video mode 12 (@ Beyond Infinity)

Posted: Fri Aug 01, 2003 6:48 am
by distantvoices
hm... the only one to write to video memory or handle video card ports in my os is and will be the video task... and yes I 'll use a method like the one you've suggested. No other program than the video task needs to know about this low level pixel plotting stuff...

all the others tell it what to do, thats it...

thanks for the idea :-)

Re:video mode 12 (@ Beyond Infinity)

Posted: Fri Aug 01, 2003 7:12 am
by Pype.Clicker
beyond infinity wrote:
thanks for the idea :-)
hehe ... that'z bekauze i kan't wait until i implement it myzelf :-p

Re:video mode 12 (@ Beyond Infinity)

Posted: Fri Aug 01, 2003 7:34 am
by distantvoices
];-] *muuuahhahahahahaaaaaaaa*