Detecting Colour and Monochrome Monitors: Difference between revisions

→‎The Function: Simplified...
[unchecked revision][unchecked revision]
(fixed error in commenting.)
(→‎The Function: Simplified...)
Line 14:
 
//c can be 0x00 or 0x20 for colour, 0x30 for mono.
ifreturn (c==0x30){;
return(true); //Monochrome monitor.
} else {
return(false); //Colour monitor.
}
}
</pre>
448

edits