summaryrefslogtreecommitdiffstats
path: root/video/out/vo_opengl_old.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-02-24 23:32:51 +0100
committerwm4 <wm4@nowhere>2013-02-26 02:01:48 +0100
commit423c0b13c4ffaf8ba619a4412b90a4b94fccce3c (patch)
treed63e256901015ac5ffd039f5f6c51f9fbefddb8c /video/out/vo_opengl_old.c
parentc61f1ff61b8282d9938671543fa6a63d25cf5fc0 (diff)
downloadmpv-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_old.c')
-rw-r--r--video/out/vo_opengl_old.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/video/out/vo_opengl_old.c b/video/out/vo_opengl_old.c
index c7a7312974..3934bb3806 100644
--- a/video/out/vo_opengl_old.c
+++ b/video/out/vo_opengl_old.c
@@ -1723,7 +1723,7 @@ static int initGl(struct vo *vo, uint32_t d_width, uint32_t d_height)
return 1;
}
-static bool create_window(struct vo *vo, uint32_t d_width, uint32_t d_height,
+static bool config_window(struct vo *vo, uint32_t d_width, uint32_t d_height,
uint32_t flags)
{
struct gl_priv *p = vo->priv;
@@ -1734,7 +1734,7 @@ static bool create_window(struct vo *vo, uint32_t d_width, uint32_t d_height,
int mpgl_caps = MPGL_CAP_GL_LEGACY;
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,
@@ -1760,7 +1760,7 @@ static int config(struct vo *vo, uint32_t width, uint32_t height,
if (vo->config_count)
uninitGl(vo);
- if (!create_window(vo, d_width, d_height, flags))
+ if (!config_window(vo, d_width, d_height, flags))
return -1;
initGl(vo, vo->dwidth, vo->dheight);
@@ -2272,7 +2272,7 @@ static int preinit(struct vo *vo, const char *arg)
p->gl = p->glctx->gl;
if (p->use_yuv == -1) {
- if (!create_window(vo, 320, 200, VOFLAG_HIDDEN))
+ if (!config_window(vo, 320, 200, VOFLAG_HIDDEN))
goto err_out;
autodetectGlExtensions(vo);
// We created a window to test whether the GL context supports hardware