# HG changeset patch # User reimar # Date 1308509877 0 # Node ID d3ea6cda99b057c88f20fe1fcecb21f2b91716cf # Parent c4d315b544a16ba9cb983824f815e3b7d5dcd567 Remove more unnecessary code/defines. diff -r c4d315b544a1 -r d3ea6cda99b0 libvo/vo_directx.c --- a/libvo/vo_directx.c Sun Jun 19 18:55:30 2011 +0000 +++ b/libvo/vo_directx.c Sun Jun 19 18:57:57 2011 +0000 @@ -37,16 +37,6 @@ #include "sub/sub.h" #include "w32_common.h" -#ifndef WM_XBUTTONDOWN -# define WM_XBUTTONDOWN 0x020B -# define WM_XBUTTONUP 0x020C -# define WM_XBUTTONDBLCLK 0x020D -#endif - -#define WNDCLASSNAME_WINDOWED "MPlayer - The Movie Player" -#define WNDCLASSNAME_FULLSCREEN "MPlayer - Fullscreen" -#define WNDSTYLE WS_OVERLAPPEDWINDOW|WS_SIZEBOX - static LPDIRECTDRAWCOLORCONTROL g_cc = NULL; //color control interface static LPDIRECTDRAW7 g_lpdd = NULL; //DirectDraw Object static LPDIRECTDRAWSURFACE7 g_lpddsPrimary = NULL; //Primary Surface: viewport through the Desktop @@ -338,8 +328,6 @@ if (g_lpddsPrimary != NULL) g_lpddsPrimary->lpVtbl->Release(g_lpddsPrimary); g_lpddsPrimary = NULL; mp_msg(MSGT_VO, MSGL_DBG3,"primary released\n"); - UnregisterClass(WNDCLASSNAME_WINDOWED, GetModuleHandle(NULL)); - UnregisterClass(WNDCLASSNAME_FULLSCREEN, GetModuleHandle(NULL)); if (colorbrush) DeleteObject(colorbrush); colorbrush = NULL; mp_msg(MSGT_VO, MSGL_DBG3,"GDI resources deleted\n");