Make "Warning: Using colour depth of 32 instead of 24." message a debug log message

instead of a printf. Requested by Christian Vest Hansen <karmazilla@gmail.com> in 
bug#4979.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@386 4a71c877-e1ca-e34f-864e-861f7616d084
master
Per Inge Mathisen 2006-01-16 18:51:12 +00:00
parent 5b6b5ecf78
commit 68c879d8de
1 changed files with 2 additions and 1 deletions

View File

@ -192,7 +192,8 @@ BOOL screenInitialise( UDWORD width, // Display width
return FALSE; return FALSE;
} }
if (bpp != screenDepth) { if (bpp != screenDepth) {
printf("Warning: Using colour depth of %d instead of %d.\n", bpp, screenDepth); debug(LOG_3D, "Warning: Using colour depth of %d instead of %d.",
bpp, screenDepth);
} }
screen = SDL_SetVideoMode(width, height, bpp, video_flags); screen = SDL_SetVideoMode(width, height, bpp, video_flags);
if (!screen) { if (!screen) {