Q63722: "C For Yourself" Documentation Error
Article: Q63722
Product(s): See article
Version(s): 2.50
Operating System(s): MS-DOS
Keyword(s): ENDUSER | docerr | mspl13_c
Last Modified: 15-AUG-1990
On Page 246 of the "C For Yourself" manual supplied with QuickC
version 2.50 and Quick Assembler version 2.51, there is a macro under
the heading "EGA Color Mixing."
The macro is incorrectly defined as follows:
#define EGARGB( r, g, b ) (0x3F3F3FL & ((long)(b) << 20 | (g) << 12 \
| (r << 4)))
This macro should read as follows:
#define EGARGB( r, g, b ) (0x303030L & ((long)(b) << 20 | (g) << 12 \
| (r << 4)))
Note that the backslashes can be omitted if you put the #define all on
one line.
THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.
Copyright Microsoft Corporation 1986-2002.