Browse Source

Porting to SDL2.

Wei Mingzhi 11 years ago
parent
commit
4111d16a13
2 changed files with 42 additions and 0 deletions
  1. 31 0
      video.c
  2. 11 0
      video.h

+ 31 - 0
video.c

@@ -867,3 +867,34 @@ VIDEO_FadeScreen(
    //
    VIDEO_UpdateScreen(NULL);
 }
+
+#if SDL_VERSION_ATLEAST(2,0,0)
+
+/*++
+  Purpose:
+
+    Set the caption of the window. For compatibility with SDL2 only.
+
+  Parameters:
+
+    [IN]  lpszCaption - the new caption of the window.
+
+    [IN]  lpReserved - not used, for compatibility only.
+
+  Return value:
+
+    None.
+
+--*/
+VOID
+SDL_WM_SetCaption(
+   LPCSTR         lpszCaption,
+   LPVOID         lpReserved
+)
+{
+   //
+   // TODO
+   //
+}
+
+#endif

+ 11 - 0
video.h

@@ -104,6 +104,17 @@ VIDEO_FadeScreen(
    WORD           wSpeed
 );
 
+#if SDL_VERSION_ATLEAST(2,0,0)
+//
+// For compatibility with SDL2.
+//
+VOID
+SDL_WM_SetCaption(
+   LPCSTR         lpszCaption,
+   LPVOID         lpReserved
+);
+#endif
+
 #ifdef __cplusplus
 }
 #endif