summaryrefslogtreecommitdiffstats
path: root/cfg-mplayer.h
diff options
context:
space:
mode:
authorUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-24 07:23:15 +0300
committerUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-25 03:34:27 +0300
commitb14909a955259c3b9c3494a5096ceed81397926c (patch)
treef40a07013cfadad52aca1847038370345582b062 /cfg-mplayer.h
parent1351b50ea5e12d0b316c0670a525f1a75be3100b (diff)
downloadmpv-b14909a955259c3b9c3494a5096ceed81397926c.tar.bz2
mpv-b14909a955259c3b9c3494a5096ceed81397926c.tar.xz
Move opt_screen_size_[x|y] to options struct
Diffstat (limited to 'cfg-mplayer.h')
-rw-r--r--cfg-mplayer.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/cfg-mplayer.h b/cfg-mplayer.h
index 1d20fe1fd7..e0b44205d3 100644
--- a/cfg-mplayer.h
+++ b/cfg-mplayer.h
@@ -23,9 +23,6 @@ extern float vo_panscanrange;
/* only used at startup (setting these values from configfile) */
extern char *vo_geometry;
-extern int opt_screen_size_x;
-extern int opt_screen_size_y;
-
extern char *ao_outputfilename;
extern int ao_pcm_waveheader;
@@ -163,8 +160,8 @@ const m_option_t mplayer_opts[]={
#endif
// force window width/height or resolution (with -vm)
- {"x", &opt_screen_size_x, CONF_TYPE_INT, CONF_RANGE, 0, 4096, NULL},
- {"y", &opt_screen_size_y, CONF_TYPE_INT, CONF_RANGE, 0, 4096, NULL},
+ OPT_INTRANGE("x", screen_size_x, 0, 0, 4096),
+ OPT_INTRANGE("y", screen_size_y, 0, 0, 4096),
// set screen dimensions (when not detectable or virtual!=visible)
OPT_INTRANGE("screenw", vo_screenwidth, CONF_OLD, 0, 4096),
OPT_INTRANGE("screenh", vo_screenheight, CONF_OLD, 0, 4096),