summaryrefslogtreecommitdiffstats
path: root/DOCS/client_api_examples/qml/main.cpp
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-04-09 19:31:01 +0200
committerwm4 <wm4@nowhere>2015-04-09 19:31:01 +0200
commite76f6929e52ff3a9d2159ad15876d9343ad88788 (patch)
treee2b9767492006aeedf40f66255a40c444241b98b /DOCS/client_api_examples/qml/main.cpp
parent8dc7156bc0271965ea1e6768cfc7bbe67cef1876 (diff)
downloadmpv-e76f6929e52ff3a9d2159ad15876d9343ad88788.tar.bz2
mpv-e76f6929e52ff3a9d2159ad15876d9343ad88788.tar.xz
vo_opengl_cb: deprecate mpv_opengl_cb_render()
Its vp parameter made no sense anymore. Introduce a new one.
Diffstat (limited to 'DOCS/client_api_examples/qml/main.cpp')
-rw-r--r--DOCS/client_api_examples/qml/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/DOCS/client_api_examples/qml/main.cpp b/DOCS/client_api_examples/qml/main.cpp
index 69552e982c..2122cd8c5c 100644
--- a/DOCS/client_api_examples/qml/main.cpp
+++ b/DOCS/client_api_examples/qml/main.cpp
@@ -46,9 +46,8 @@ public:
void render()
{
QOpenGLFramebufferObject *fbo = framebufferObject();
- int vp[4] = {0, 0, fbo->width(), fbo->height()};
window->resetOpenGLState();
- mpv_opengl_cb_render(mpv_gl, fbo->handle(), vp);
+ mpv_opengl_cb_draw(mpv_gl, fbo->handle(), fbo->width(), fbo->height());
window->resetOpenGLState();
}
};