summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorjoey <joey@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-11-10 21:15:37 +0000
committerjoey <joey@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-11-10 21:15:37 +0000
commit09ed4549ebf56596a637586b5c5e99c1d361caa8 (patch)
tree10ffcacafdd1c0087f7ce1c15e21a1445f7caf44 /libvo
parentfdb45831899ae5b7b23bdf27b4a07ee047b69a85 (diff)
downloadmpv-09ed4549ebf56596a637586b5c5e99c1d361caa8.tar.bz2
mpv-09ed4549ebf56596a637586b5c5e99c1d361caa8.tar.xz
move window style to a macro for easier maintaining
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16967 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_directx.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libvo/vo_directx.c b/libvo/vo_directx.c
index 4b9528464f..dea6e9b6d3 100644
--- a/libvo/vo_directx.c
+++ b/libvo/vo_directx.c
@@ -43,6 +43,7 @@
#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
@@ -669,7 +670,7 @@ static uint32_t Directx_ManageDisplay()
if(!vidmode && !vo_fs){
if(WinID == -1) {
RECT rdw=rd;
- AdjustWindowRect(&rdw,WS_OVERLAPPEDWINDOW|WS_SIZEBOX,FALSE);
+ AdjustWindowRect(&rdw,WNDSTYLE,FALSE);
// printf("window: %i %i %ix%i\n",rdw.left,rdw.top,rdw.right - rdw.left,rdw.bottom - rdw.top);
rdw.left += monitor_rect.left; /* move to global coordinate space */
rdw.top += monitor_rect.top;
@@ -1038,7 +1039,7 @@ static int preinit(const char *arg)
if (WinID != -1) hWnd = WinID;
else
hWnd = CreateWindowEx(vidmode?WS_EX_TOPMOST:0,
- WNDCLASSNAME_WINDOWED,"",(vidmode)?WS_POPUP:WS_OVERLAPPEDWINDOW| WS_SIZEBOX,
+ WNDCLASSNAME_WINDOWED,"",(vidmode)?WS_POPUP:WNDSTYLE,
CW_USEDEFAULT, CW_USEDEFAULT, 100, 100,NULL,NULL,hInstance,NULL);
wc.hbrBackground = blackbrush;
wc.lpszClassName = WNDCLASSNAME_FULLSCREEN;
@@ -1294,7 +1295,7 @@ config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uin
rd.right = rd.left + d_image_width;
rd.bottom = rd.top + d_image_height;
if (WinID == -1) {
- AdjustWindowRect(&rd,WS_OVERLAPPEDWINDOW|WS_SIZEBOX,FALSE);
+ AdjustWindowRect(&rd,WNDSTYLE,FALSE);
SetWindowPos(hWnd,NULL, vo_dx, vo_dy,rd.right-rd.left,rd.bottom-rd.top,SWP_SHOWWINDOW|SWP_NOOWNERZORDER);
}
}