ref: 6e467c170e62f4a5fe7c9ea677cecb540c043a0d
parent: 8ecd22ff6794dc143fc22c5a629590838c2dc6db
author: Iliyas Jorio <iliyas@jor.io>
date: Tue Feb 7 18:41:09 EST 2023
Display version info
--- a/src/graphics.cpp
+++ b/src/graphics.cpp
@@ -1,6 +1,7 @@
// graphics.c
#include <stdlib.h>
+#include "version.h"
#include "SDLU.h"
#include "main.h"
#include "players.h"
@@ -164,8 +165,19 @@
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();
binary files a/src/main.cpp b/src/main.cpp differ