Method and apparatus for providing multiple bit depth windows
First Claim
1. A method for dynamically determining in a computer a depth of a display window when interpreting drawing commands to said display window received from a plurality of application programs, said method comprising the steps of:
- identifying a current depth of said window, where said current depth is a current bit per pixel depth;
identifying in said computer a current desired bit per pixel depth of said window based on information contained in said drawing commands provided by an application program;
identifying in said computer a maximum desired depth of said window where said maximum desired depth is the maximum desired bit per pixel depth;
comparing in said computer said current depth with said current desired depth and with said maximum desired depth;
setting said current depth of said window equal to said current desired depth when said current desired depth is less than or equal to said maximum desired depth; and
setting said current depth equal to said maximum desired step when said current desired depth is greater than said maximum desired depth.
2 Assignments
0 Petitions
Accused Products
Abstract
A method and apparatus for allocating memory space in main memory of an associated processor for a plurality of windows. The depth in each window is independent of other windows on the display and can be changed dynamically. An application program is not required to know the frame buffer depth in advance. When a window is created, a default depth (e.g., two bits per pixel) is defined for the window. When a program writes to the window, drawing commands are interpreted and the appropriate depth is provided.
167 Citations
16 Claims
-
1. A method for dynamically determining in a computer a depth of a display window when interpreting drawing commands to said display window received from a plurality of application programs, said method comprising the steps of:
-
identifying a current depth of said window, where said current depth is a current bit per pixel depth; identifying in said computer a current desired bit per pixel depth of said window based on information contained in said drawing commands provided by an application program; identifying in said computer a maximum desired depth of said window where said maximum desired depth is the maximum desired bit per pixel depth; comparing in said computer said current depth with said current desired depth and with said maximum desired depth; setting said current depth of said window equal to said current desired depth when said current desired depth is less than or equal to said maximum desired depth; and setting said current depth equal to said maximum desired step when said current desired depth is greater than said maximum desired depth. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A method of determining in a computer a bit per pixel depth of a display window comprising the steps of:
-
identifying a current depth of said window as one of a first, second, third, and fourth depths; identifying in said computer a frame buffer depth of a frame buffer of said window, said frame buffer being one of said first, second, third, and fourth depths; identifying in said computer a maximum desired depth of said window; comparing in said computer said maximum desired depth with said frame buffer depth; and
,defining a bit per pixel depth of said window as said maximum desired depth when said maximum desired depth is less than or equal to said frame buffer depth; defining a depth of said window as said frame buffer depth when said maximum depth is greater than said frame buffer depth. - View Dependent Claims (12, 13, 14, 15, 16)
-
Specification