Page 1 of 1

Video layers

Posted: Wed Mar 16, 2011 9:15 am
by melgmry0101b
Hi everyone,
I have a mouse an some windows on the screen
How can i move the mouse on these windows or move these windows on each other without clearing any of them?is there any thing like VGA layers?

i am using MSVC 2005 to develop my OS and i am using an assembly boot loader that i have it's code and i can change any thing in it. "I don't have Multitasking so that i can't use v86 , and i am in mode 13h"


-------
Thank you in advance
-----------------------

Re: Video layers

Posted: Wed Mar 16, 2011 10:35 am
by Chandra
All you need is get_image() and put_image() functions that can store pixels at certain range and then restore them later. Note that you need to have working malloc() and free() functions which implies that you should have a physical memory manager implemented. Whole lot of dependencies, no?

Re: Video layers

Posted: Wed Mar 16, 2011 5:00 pm
by Combuster
VGA "layers" only allow you to make splitscreens and in some cases add a small solid block on top of it. You can't use it to make the stereotypical mouse cursor without redrawing. Worse, high-resolution modes disable whatever bits of VGA compositing you have available so you have to do everything manually without exception.

That said, you may also benefit from the wisdom of James T. Klik

Re: Video layers

Posted: Wed Mar 16, 2011 5:14 pm
by melgmry0101b
It will be hard :shock: , but i will try and post the results