浏览代码

Porting to SDL2.

Wei Mingzhi 11 年之前
父节点
当前提交
4111d16a13
共有 2 个文件被更改,包括 42 次插入0 次删除
  1. 31 0
      video.c
  2. 11 0
      video.h

+ 31 - 0
video.c

@@ -867,3 +867,34 @@ VIDEO_FadeScreen(
    //
    //
    VIDEO_UpdateScreen(NULL);
    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
    WORD           wSpeed
 );
 );
 
 
+#if SDL_VERSION_ATLEAST(2,0,0)
+//
+// For compatibility with SDL2.
+//
+VOID
+SDL_WM_SetCaption(
+   LPCSTR         lpszCaption,
+   LPVOID         lpReserved
+);
+#endif
+
 #ifdef __cplusplus
 #ifdef __cplusplus
 }
 }
 #endif
 #endif