OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Apr 25, 2024 6:43 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: video mode 12 (@ Beyond Infinity)
PostPosted: Fri Aug 01, 2003 5:40 am 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 2:31 am
Posts: 5964
Location: In a galaxy, far, far away
Quote:
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.

_________________
Image May the source be with you.


Top
 Profile  
 
 Post subject: Re:video mode 12 (@ Beyond Infinity)
PostPosted: Fri Aug 01, 2003 6:48 am 
Offline
Member
Member

Joined: Wed Oct 18, 2006 11:59 am
Posts: 1600
Location: Vienna/Austria
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 :-)

_________________
... the osdever formerly known as beyond infinity ...
BlueillusionOS iso image


Top
 Profile  
 
 Post subject: Re:video mode 12 (@ Beyond Infinity)
PostPosted: Fri Aug 01, 2003 7:12 am 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 2:31 am
Posts: 5964
Location: In a galaxy, far, far away
beyond infinity wrote:

thanks for the idea :-)


hehe ... that'z bekauze i kan't wait until i implement it myzelf :-p

_________________
Image May the source be with you.


Top
 Profile  
 
 Post subject: Re:video mode 12 (@ Beyond Infinity)
PostPosted: Fri Aug 01, 2003 7:34 am 
Offline
Member
Member

Joined: Wed Oct 18, 2006 11:59 am
Posts: 1600
Location: Vienna/Austria
];-] *muuuahhahahahahaaaaaaaa*

_________________
... the osdever formerly known as beyond infinity ...
BlueillusionOS iso image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot], RayanMargham and 220 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group