Video layers

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
melgmry0101b
Member
Member
Posts: 109
Joined: Wed Nov 10, 2010 10:49 am

Video layers

Post 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
-----------------------
User avatar
Chandra
Member
Member
Posts: 487
Joined: Sat Jul 17, 2010 12:45 am

Re: Video layers

Post 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?
Programming is not about using a language to solve a problem, it's about using logic to find a solution !
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Video layers

Post 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
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
melgmry0101b
Member
Member
Posts: 109
Joined: Wed Nov 10, 2010 10:49 am

Re: Video layers

Post by melgmry0101b »

It will be hard :shock: , but i will try and post the results
Post Reply