[vlc-commits] Win32: rename directx to directdraw

Jean-Baptiste Kempf git at videolan.org
Sun Jan 4 00:20:42 CET 2015


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Jan  4 00:15:50 2015 +0100| [0381b5dc0187bcd8bc92c843982a4c91961b7958] | committer: Jean-Baptiste Kempf

Win32: rename directx to directdraw

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0381b5dc0187bcd8bc92c843982a4c91961b7958
---

 modules/video_output/Makefile.am                     |    2 +-
 modules/video_output/msw/common.c                    |    2 +-
 modules/video_output/msw/{directx.c => directdraw.c} |    6 +++---
 modules/video_output/msw/events.h                    |    2 +-
 po/POTFILES.in                                       |    2 +-
 5 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/modules/video_output/Makefile.am b/modules/video_output/Makefile.am
index beb3644..e05b28f 100644
--- a/modules/video_output/Makefile.am
+++ b/modules/video_output/Makefile.am
@@ -181,7 +181,7 @@ libdirect3d9_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
 vout_LTLIBRARIES += $(LTLIBdirect3d9)
 EXTRA_LTLIBRARIES += libdirect3d9_plugin.la
 
-libdirectdraw_plugin_la_SOURCES = video_output/msw/directx.c \
+libdirectdraw_plugin_la_SOURCES = video_output/msw/directdraw.c \
 	video_output/msw/common.c video_output/msw/common.h \
 	video_output/msw/events.c video_output/msw/events.h \
 	video_output/msw/win32touch.c video_output/msw/win32touch.h
diff --git a/modules/video_output/msw/common.c b/modules/video_output/msw/common.c
index 96c0010..75c8a76 100644
--- a/modules/video_output/msw/common.c
+++ b/modules/video_output/msw/common.c
@@ -147,7 +147,7 @@ void CommonManage(vout_display_t *vd)
              * an issue. The surface automatically gets moved together
              * with the associated window (hvideownd)
              *
-             * For directx, it is still important to call UpdateRects
+             * For directdraw, it is still important to call UpdateRects
              * on a move of the parent window, even if no resize occurred
              */
             SetWindowPos(sys->hwnd, 0, 0, 0,
diff --git a/modules/video_output/msw/directx.c b/modules/video_output/msw/directdraw.c
similarity index 99%
rename from modules/video_output/msw/directx.c
rename to modules/video_output/msw/directdraw.c
index 8b8e3fb..db06565 100644
--- a/modules/video_output/msw/directx.c
+++ b/modules/video_output/msw/directdraw.c
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * directx.c: Windows DirectDraw video output
+ * directdraw.c: Windows DirectDraw video output
  *****************************************************************************
  * Copyright (C) 2001-2009 VLC authors and VideoLAN
  * $Id$
@@ -94,7 +94,7 @@ static void Close(vlc_object_t *);
 static int FindDevicesCallback(vlc_object_t *, const char *,
                                char ***, char ***);
 vlc_module_begin()
-    set_shortname("DirectX")
+    set_shortname("DirectDraw")
     set_description(N_("DirectX (DirectDraw) video output"))
     set_help(DX_HELP)
     set_category(CAT_VIDEO)
@@ -109,7 +109,7 @@ vlc_module_begin()
         change_string_cb(FindDevicesCallback)
 
     set_capability("vout display", 230)
-    add_shortcut("directx")
+    add_shortcut("directx", "directdraw")
     set_callbacks(Open, Close)
 vlc_module_end()
 
diff --git a/modules/video_output/msw/events.h b/modules/video_output/msw/events.h
index 25372c6..883d769 100644
--- a/modules/video_output/msw/events.h
+++ b/modules/video_output/msw/events.h
@@ -31,7 +31,7 @@ typedef struct event_thread_t event_thread_t;
 
 typedef struct {
     bool use_desktop; /* direct3d */
-    bool use_overlay; /* directx */
+    bool use_overlay; /* directdraw */
     int x;
     int y;
     unsigned width;
diff --git a/po/POTFILES.in b/po/POTFILES.in
index de304c8..4d861d5 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1172,7 +1172,7 @@ modules/video_output/kva.c
 modules/video_output/macosx.m
 modules/video_output/msw/direct2d.c
 modules/video_output/msw/direct3d9.c
-modules/video_output/msw/directx.c
+modules/video_output/msw/directdraw.c
 modules/video_output/msw/events.c
 modules/video_output/msw/glwin32.c
 modules/video_output/msw/wingdi.c



More information about the vlc-commits mailing list