Anonymous user
Detecting Colour and Monochrome Monitors: Difference between revisions
Detecting Colour and Monochrome Monitors (view source)
Revision as of 01:20, 17 August 2007
, 16 years agoStandardised code to C99.
[unchecked revision] | [unchecked revision] |
m (Fixed syntax, formatted page.) |
m (Standardised code to C99.) |
||
Line 4:
<pre>
/*
true=colour
*/
{
char c=(*(volatile USHORT*)0x410)&0x30;
//c can be 0x00 or 0x20 for colour, 0x30 for mono.
if(c==0x30){
} else {
}
}
</pre>
|