Does the program run in full screen without debug on and in a window with it on? If your desktop colour depth is 32 and your full screen depth is 16, this will be the problem - windowed graphics modes can only use the desktop colour depth, not the one specified.
32 bit modes will greatly increase the accuracy of the ColorRed( ), ColorGreen( ) and ColorBlue( ) functions.
32 bit modes will greatly increase the accuracy of the ColorRed( ), ColorGreen( ) and ColorBlue( ) functions.