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:
@@ -25,7 +25,6 @@
|
|||||||
|
|
||||||
#define UQM_MAJOR_VERSION 0
|
#define UQM_MAJOR_VERSION 0
|
||||||
#define UQM_MINOR_VERSION 1
|
#define UQM_MINOR_VERSION 1
|
||||||
char UQM_VERSION_STRING[1000];
|
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ int
|
|||||||
TFB_InitGraphics (int driver, int flags, int width, int height, int bpp)
|
TFB_InitGraphics (int driver, int flags, int width, int height, int bpp)
|
||||||
{
|
{
|
||||||
int result;
|
int result;
|
||||||
|
char caption[200];
|
||||||
|
|
||||||
if (bpp != 15 && bpp != 16 && bpp != 24 && bpp != 32)
|
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_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)
|
if (flags & TFB_GFXFLAGS_SHOWFPS)
|
||||||
ShowFPS = TRUE;
|
ShowFPS = TRUE;
|
||||||
|
|||||||
+1
-2
@@ -79,8 +79,7 @@ main (int argc, char *argv[])
|
|||||||
{0, 0, 0, 0}
|
{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, "The Ur-Quan Masters v%d.%d (compiled %s %s)\n", UQM_MAJOR_VERSION, UQM_MINOR_VERSION, __DATE__, __TIME__);
|
||||||
fprintf (stderr, "%s\n", UQM_VERSION_STRING);
|
|
||||||
|
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
strcpy (contentdir, "content");
|
strcpy (contentdir, "content");
|
||||||
|
|||||||
Reference in New Issue
Block a user