summaryrefslogtreecommitdiffstats
path: root/rfbplayer
diff options
context:
space:
mode:
authorgeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>2005-02-13 09:33:22 +0000
committergeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>2005-02-13 09:33:22 +0000
commit68d2514851a6c872339dbe81539bd3472318cffd (patch)
tree11bf6959cbbf33150d555bfe50a968c92040e2cd /rfbplayer
parent63ebbcc8c572d1ee620ad3996b69144fecce49ea (diff)
downloadtigervnc-68d2514851a6c872339dbe81539bd3472318cffd.tar.gz
tigervnc-68d2514851a6c872339dbe81539bd3472318cffd.zip
Added DEFAULT_PLAYER_WIDTH and DEFAULT_PLAYER_HEIGHT constant.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@176 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'rfbplayer')
-rw-r--r--rfbplayer/rfbplayer.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/rfbplayer/rfbplayer.cxx b/rfbplayer/rfbplayer.cxx
index 8df1e5fa..89e9d5dc 100644
--- a/rfbplayer/rfbplayer.cxx
+++ b/rfbplayer/rfbplayer.cxx
@@ -60,6 +60,8 @@ char usage_msg[] =
#define strcasecmp _stricmp
#define MAX_SPEED 10
#define MAX_POS_TRACKBAR_RANGE 50
+#define DEFAULT_PLAYER_WIDTH 640
+#define DEFAULT_PLAYER_HEIGHT 480
#define ID_TOOLBAR 500
#define ID_PLAY 510
@@ -225,7 +227,7 @@ RfbPlayer::RfbPlayer(char *_fileName, long _initTime = 0, double _playbackSpeed
// Create the main window
const TCHAR* name = _T("RfbPlayer");
mainHwnd = CreateWindow((const TCHAR*)baseClass.classAtom, name, WS_OVERLAPPEDWINDOW,
- 0, 0, 640, 480, 0, 0, baseClass.instance, this);
+ 0, 0, DEFAULT_PLAYER_WIDTH, DEFAULT_PLAYER_HEIGHT, 0, 0, baseClass.instance, this);
if (!mainHwnd) {
throw rdr::SystemException("unable to create WMNotifier window instance", GetLastError());
}