some fixes to previous commit

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@179 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
gewlitys
2002-10-28 23:40:29 +00:00
parent 919ca97b2e
commit 223d5ea56f
3 changed files with 4 additions and 4 deletions
-1
View File
@@ -25,7 +25,6 @@
#define UQM_MAJOR_VERSION 0
#define UQM_MINOR_VERSION 1
char UQM_VERSION_STRING[1000];
enum
{
@@ -44,6 +44,7 @@ int
TFB_InitGraphics (int driver, int flags, int width, int height, int bpp)
{
int result;
char caption[200];
if (bpp != 15 && bpp != 16 && bpp != 24 && bpp != 32)
{
@@ -69,7 +70,8 @@ TFB_InitGraphics (int driver, int flags, int width, int height, int bpp)
}
SDL_EnableUNICODE (1);
SDL_WM_SetCaption (UQM_VERSION_STRING, NULL);
sprintf (caption, "The Ur-Quan Masters v%d.%d", UQM_MAJOR_VERSION, UQM_MINOR_VERSION);
SDL_WM_SetCaption (caption, NULL);
if (flags & TFB_GFXFLAGS_SHOWFPS)
ShowFPS = TRUE;
+1 -2
View File
@@ -79,8 +79,7 @@ main (int argc, char *argv[])
{0, 0, 0, 0}
};
sprintf (UQM_VERSION_STRING, "The Ur-Quan Masters v%d.%d (compiled %s %s)", UQM_MAJOR_VERSION, UQM_MINOR_VERSION, __DATE__, __TIME__);
fprintf (stderr, "%s\n", UQM_VERSION_STRING);
fprintf (stderr, "The Ur-Quan Masters v%d.%d (compiled %s %s)\n", UQM_MAJOR_VERSION, UQM_MINOR_VERSION, __DATE__, __TIME__);
#ifndef WIN32
strcpy (contentdir, "content");