If WIDTH 80,60 in SCREEN 12, then PALETTE Can Give Wrong Color (50896)
The information in this article applies to:
- Microsoft QuickBASIC 4.5
- Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.0
This article was previously published under Q50896 SYMPTOMS
In SCREEN 12, if the WIDTH 80, 60 statement is used to set the screen
to 60-line mode and then the PALETTE statement is used to set
attributes and colors, the palette can give erroneous colors. The
problem can be worked around by changing the WIDTH statement to
WIDTH , 30 to set the screen to 30-line mode instead of 60.
The code fragment given below demonstrates the problem in QuickBasic
version 4.5. The same code fragment runs correctly in QuickBasic
versions 4.0 and 4.0b.
STATUS
Microsoft has confirmed this to be a bug in QuickBasic version
4.5 and in Microsoft Basic Professional Development System (PDS)
version 7.0 (buglist7.00). This problem was corrected in Basic PDS
version 7.1 (fixlist7.10).
Modification Type: | Minor | Last Reviewed: | 1/8/2003 |
---|
Keywords: | KB50896 |
---|
|