diff options
author | wm4 <wm4@nowhere> | 2013-02-24 23:32:51 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-02-26 02:01:48 +0100 |
commit | 423c0b13c4ffaf8ba619a4412b90a4b94fccce3c (patch) | |
tree | d63e256901015ac5ffd039f5f6c51f9fbefddb8c /video/out/vo_opengl.c | |
parent | c61f1ff61b8282d9938671543fa6a63d25cf5fc0 (diff) | |
download | mpv-423c0b13c4ffaf8ba619a4412b90a4b94fccce3c.tar.bz2 mpv-423c0b13c4ffaf8ba619a4412b90a4b94fccce3c.tar.xz |
video/out: rename create_window to config_window
create_window is really bad naming, because this function can be called
multiple times, while the name implies that it always creates a new
window. At least the name config_window is not actively misleading.
Diffstat (limited to 'video/out/vo_opengl.c')
-rw-r--r-- | video/out/vo_opengl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/video/out/vo_opengl.c b/video/out/vo_opengl.c index cc67187a0f..f2c78392ba 100644 --- a/video/out/vo_opengl.c +++ b/video/out/vo_opengl.c @@ -1624,7 +1624,7 @@ static int query_format(struct vo *vo, uint32_t format) return caps; } -static bool create_window(struct gl_priv *p, uint32_t d_width, +static bool config_window(struct gl_priv *p, uint32_t d_width, uint32_t d_height, uint32_t flags) { if (p->stereo_mode == GL_3D_QUADBUFFER) @@ -1636,7 +1636,7 @@ static bool create_window(struct gl_priv *p, uint32_t d_width, int mpgl_caps = MPGL_CAP_GL21 | MPGL_CAP_TEX_RG; if (!p->allow_sw) mpgl_caps |= MPGL_CAP_NO_SW; - return mpgl_create_window(p->glctx, mpgl_caps, d_width, d_height, flags); + return mpgl_config_window(p->glctx, mpgl_caps, d_width, d_height, flags); } static int config(struct vo *vo, uint32_t width, uint32_t height, @@ -1645,7 +1645,7 @@ static int config(struct vo *vo, uint32_t width, uint32_t height, { struct gl_priv *p = vo->priv; - if (!create_window(p, d_width, d_height, flags)) + if (!config_window(p, d_width, d_height, flags)) return -1; if (!p->vertex_buffer) @@ -2185,7 +2185,7 @@ static int preinit(struct vo *vo, const char *arg) goto err_out; p->gl = p->glctx->gl; - if (!create_window(p, 320, 200, VOFLAG_HIDDEN)) + if (!config_window(p, 320, 200, VOFLAG_HIDDEN)) goto err_out; check_gl_features(p); // We created a window to test whether the GL context could be |