Browse Source

Avoid compilation warning on linux/x64 & Change 'Windows Phone' to 'Windows Runtime'

louyihua 8 years ago
parent
commit
ba644a0eba
2 changed files with 2 additions and 2 deletions
  1. 1 1
      common.h
  2. 1 1
      video.c

+ 1 - 1
common.h

@@ -244,7 +244,7 @@ extern "C"
 #  define PAL_VIDEO_INIT_FLAGS  (SDL_HWSURFACE | SDL_RESIZABLE | (gConfig.fFullScreen ? SDL_FULLSCREEN : 0))
 # endif
 
-# define PAL_PLATFORM         "Windows Phone"
+# define PAL_PLATFORM         "Windows Runtime"
 # define PAL_CREDIT           "(Unknown)"
 # define PAL_PORTYEAR         "2015"
 

+ 1 - 1
video.c

@@ -822,7 +822,7 @@ VIDEO_SaveScreenshot(
 	struct tm *ptm;
 	gettimeofday(&tv, NULL);
 	ptm = localtime(&tv.tv_sec);
-	sprintf(filename, "%s%04d%02d%02d%02d%02d%02d%03d.bmp", PAL_SCREENSHOT_PREFIX, ptm->tm_year + 1900, ptm->tm_mon, ptm->tm_mday, ptm->tm_hour, ptm->tm_min, ptm->tm_sec, tv.tv_usec / 1000);
+	sprintf(filename, "%s%04d%02d%02d%02d%02d%02d%03d.bmp", PAL_SCREENSHOT_PREFIX, ptm->tm_year + 1900, ptm->tm_mon, ptm->tm_mday, ptm->tm_hour, ptm->tm_min, ptm->tm_sec, (int)(tv.tv_usec / 1000));
 #endif
 	
 	//