added displaying fake version as 'fake' on the version info screen
authorHolger Schemel <info@artsoft.org>
Sat, 21 Oct 2017 16:42:22 +0000 (18:42 +0200)
committerHolger Schemel <info@artsoft.org>
Fri, 23 Mar 2018 22:21:14 +0000 (23:21 +0100)
src/screens.c

index ab1d2be1188928f23ee4fc54d066a8de9c5fee02..b67573e61a4d9c9c552a796ac979e429f0086ade 100644 (file)
@@ -3308,16 +3308,22 @@ void DrawInfoScreen_Version()
   DrawTextF(xstart1, ystart2, font_header, "Name");
   DrawTextF(xstart2, ystart2, font_text, getProgramTitleString());
 
-  ystart2 += ystep;
-  DrawTextF(xstart1, ystart2, font_header, "Version");
-  DrawTextF(xstart2, ystart2, font_text, getProgramVersionString());
-
   if (!strEqual(getProgramVersionString(), getProgramRealVersionString()))
   {
+    ystart2 += ystep;
+    DrawTextF(xstart1, ystart2, font_header, "Version (fake)");
+    DrawTextF(xstart2, ystart2, font_text, getProgramVersionString());
+
     ystart2 += ystep;
     DrawTextF(xstart1, ystart2, font_header, "Version (real)");
     DrawTextF(xstart2, ystart2, font_text, getProgramRealVersionString());
   }
+  else
+  {
+    ystart2 += ystep;
+    DrawTextF(xstart1, ystart2, font_header, "Version");
+    DrawTextF(xstart2, ystart2, font_text, getProgramVersionString());
+  }
 
   ystart2 += ystep;
   DrawTextF(xstart1, ystart2, font_header, "Platform");