![]() |
|
Improper masking |
horizon981
Member #7,594
August 2006
|
I was learing how to draw masked sprites, the mask color of course, being pink.
Here's the image: |
Kitty Cat
Member #2,815
October 2002
![]() |
set_gfx_mode(GFX_AUTODETECT_WINDOWED, 640, 480, 0, 0); set_color_depth(24);
That's backwards. You need to set a color depth before setting a graphics mode. Also, 24-bit is not a good color to use. Generally you should use the desktop color depth -- |
Kauhiz
Member #4,798
July 2004
|
This has nothing to do with your problem, but I just like to point out to everyone who makes the mistake, that END_OF_MAIN(); is wrong. It should be just END_OF_MAIN() without the ; at the end. --- |
horizon981
Member #7,594
August 2006
|
|
Kauhiz
Member #4,798
July 2004
|
--- |
Kitty Cat
Member #2,815
October 2002
![]() |
Quote: But if the semi colon at END_OF_MAIN(); is an error, why do the programs compile at all? Because compilers are very lenient about it. But it's still improper code. -- |
|