summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/common.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-10-02 17:49:22 +0200
committerwm4 <wm4@nowhere>2015-10-02 17:59:05 +0200
commit69bc7e34b9ce6a8be6731a42a00a01a120194a41 (patch)
tree11ee6d51906e109baf755bdc6636a17544746fb0 /video/out/opengl/common.h
parenta9ed9e329c6e85d6d3336626106a67b9dd6a4bff (diff)
downloadmpv-69bc7e34b9ce6a8be6731a42a00a01a120194a41.tar.bz2
mpv-69bc7e34b9ce6a8be6731a42a00a01a120194a41.tar.xz
vo_opengl: refactor DwmFlush crap
Get it out of the way in the common code. MPGLContext.dwm_flush_opt can be removed as well as soon as the option system gets overhauled.
Diffstat (limited to 'video/out/opengl/common.h')
-rw-r--r--video/out/opengl/common.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/video/out/opengl/common.h b/video/out/opengl/common.h
index 1a6b62aa35..e746fe0d8d 100644
--- a/video/out/opengl/common.h
+++ b/video/out/opengl/common.h
@@ -119,6 +119,9 @@ typedef struct MPGLContext {
const char *native_display_type;
void *native_display;
+ // Windows-specific hack. See vo_opengl dwmflush suboption.
+ int dwm_flush_opt;
+
// For free use by the mpgl_driver.
void *priv;
@@ -131,12 +134,6 @@ typedef struct MPGLContext {
int (*vo_control)(struct vo *vo, int *events, int request, void *arg);
void (*releaseGlContext)(struct MPGLContext *);
- // Used on windows only, tries to vsync with the DWM, and modifies SwapInterval
- // when it does so. Returns the possibly modified swapinterval value.
- int (*DwmFlush)(struct MPGLContext *, int opt_dwmflush,
- int opt_swapinterval, int current_swapinterval);
-
-
// Resize the window, or create a new window if there isn't one yet.
// On the first call, it creates a GL context.
bool (*config_window)(struct MPGLContext *ctx, int flags);