Mercurial > mplayer.hg
diff gui/win32/gui.c @ 31511:13ca93203358
Factorize MPlayer/MEncoder version string handling.
The string now resides in a central object file instead of
being duplicated in every file that requires a version string.
author | diego |
---|---|
date | Mon, 28 Jun 2010 08:26:14 +0000 |
parents | dc7ed18ea0df |
children | 312e3b425f0f |
line wrap: on
line diff
--- a/gui/win32/gui.c Sun Jun 27 20:47:26 2010 +0000 +++ b/gui/win32/gui.c Mon Jun 28 08:26:14 2010 +0000 @@ -29,7 +29,7 @@ #include <windowsx.h> #include <shlobj.h> -#include "version.h" +#include "mpcommon.h" #include "mplayer.h" #include "mp_fifo.h" #include "mp_msg.h" @@ -85,12 +85,12 @@ HWND hwnd = NULL; console = 1; AllocConsole(); - SetConsoleTitle(MP_TITLE); + SetConsoleTitle(mplayer_version); /* disable the close button for now */ while (!hwnd) { - hwnd = FindWindow(NULL, MP_TITLE); + hwnd = FindWindow(NULL, mplayer_version); Sleep(100); } DeleteMenu(GetSystemMenu(hwnd, 0), SC_CLOSE, MF_BYCOMMAND);