Solved

How do you put the whole card into windowed mode? Is there a way to do this that any card could hadle?

Posted on 2009-05-08
3
275 Views
Last Modified: 2012-05-06
How would you put a graphics card into windowed mode to allow for pixel mapping? Is there a way to do this that any card could handle?
0
Comment
Question by:deer22
  • 2
3 Comments
 
LVL 23

Accepted Solution

by:
Jens Fiederer earned 500 total points
ID: 24340035
The video card itself would not be in a "windowed" mode.

Modes of the card control how video memory is mapped into pixels.

Pretty much all standard cards support the old VGA modes....
see ( http://en.wikipedia.org/wiki/VGA )

Many modern graphics cards go beyond that, and allow you to map memory locations directly to pixels (letting you have as many colors on the screen as you have pixels - that's when they talk about "16 bit" color or "32 bit" color), but the old VGA (and before that, EGA and CGA) modes mostly used a palette (CLUT) - only the "16 bit" color mode allowed each pixel to indepently specify 5 bits of each of the 3 color components.

These modes are what you see changing when you use the OS to resize screen resolution (and what happens when a full-screen game takes over your display).

"Windowed mode" is not a mode of the card, it is a mode of the OS.  It means that the user gets to pick the screen resolution using the control panel (assuming Windows), and that the OS controls display of the windows, allowing the applications to touch only their own space (there are ways to "escape" that space, but no reasonable way for one app to have a different screen resolution than another that is displayed at the same time ).   This does not let an app like a game really do all the cool things that a video card might allow it to do, so there is also a "Fullscreen" mode that gives the game full control over the display -  letting it set video card modes, do 3-d graphics, all that sort of thing - as long as "Fullscreen" mode is enabled, the OS pretty much forgets about doing display, and other apps can't use the display.

Using DirectDraw Palettes in Windowed Mode IS possible, but of limited usefulness - since changing the palette would mess up any OTHER windows that were being displayed, why not use full screen so you have the whole screen to yourself?

http://msdn.microsoft.com/en-us/library/ms893856.aspx

http://books.google.com/books?id=lRUj-nhQRu8C&pg=PA386&lpg=PA386&dq=directdraw+palette+%22windowed+mode%22&source=bl&ots=7vD64yM-0x&sig=8ZWg49GG1fqQ3yuSDpF_VAXhZso&hl=en&ei=7ZcESqfeM9fHtgf0n5DtBg&sa=X&oi=book_result&ct=result&resnum=7
0
 
LVL 23

Expert Comment

by:Jens Fiederer
ID: 24340047
0
 
LVL 3

Author Closing Comment

by:deer22
ID: 31579618
Thank you!
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question