diff --git a/src/graphics.cpp b/src/graphics.cpp index 491ca61..6ad6d1d 100644 --- a/src/graphics.cpp +++ b/src/graphics.cpp @@ -1,6 +1,7 @@ // graphics.c #include +#include "version.h" #include "SDLU.h" #include "main.h" #include "players.h" @@ -164,8 +165,19 @@ void ShowTitle( void ) RetrieveResources( ); MTicks time = MTickCount() + 120; - + SDLU_AcquireSurface( g_frontSurface ); DrawPICTInSurface( g_frontSurface, picTitle ); + + SkittlesFontPtr font = GetFont(picTinyFont); + MPoint dPoint; + dPoint.v = (widescreen ? 420 : 480) - 16; + dPoint.h = 4; + for (const char* scan = "Source port v" PROJECT_VERSION; *scan; scan++) + { + SurfaceBlitCharacter(font, *scan, &dPoint, 50, 50, 50, 1); + } + SDLU_ReleaseSurface( g_frontSurface ); + while( time > MTickCount() && !SDLU_Button() ) { SDLU_Present(); diff --git a/src/main.cpp b/src/main.cpp index 2e7fdd1..a694118 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -246,6 +246,7 @@ // #include "SDLU.h" +#include "version.h" #include "main.h" @@ -570,7 +571,7 @@ void ReserveMonitor( void ) SDL_CreateWindowAndRenderer(resW*scale, resH*scale, SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI, &g_window, &g_renderer); SDL_RenderSetLogicalSize(g_renderer, resW, resH); - SDL_SetWindowTitle(g_window, "Candy Crisis"); + SDL_SetWindowTitle(g_window, "Candy Crisis (source port v" PROJECT_VERSION ")"); SDL_SetRenderDrawColor(g_renderer, 0, 0, 0, 255); SDL_RenderClear(g_renderer);