diff options
author | wm4 <wm4@nowhere> | 2012-11-10 16:20:03 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-11-12 20:10:42 +0100 |
commit | 90784dfc9d139d520a4b1c2f85778b0c1e4af95b (patch) | |
tree | 33269043112b8c400419340d58dffa77fa5ef822 /video/out/gl_common.c | |
parent | 5afacef0e4d80a77518d65d83947b9f7a2630c34 (diff) | |
download | mpv-90784dfc9d139d520a4b1c2f85778b0c1e4af95b.tar.bz2 mpv-90784dfc9d139d520a4b1c2f85778b0c1e4af95b.tar.xz |
win32: remove pointless get/release DC wrappers
Diffstat (limited to 'video/out/gl_common.c')
-rw-r--r-- | video/out/gl_common.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/video/out/gl_common.c b/video/out/gl_common.c index 1781233bf7..8f4ef3525a 100644 --- a/video/out/gl_common.c +++ b/video/out/gl_common.c @@ -2063,7 +2063,7 @@ static bool create_window_w32_old(struct MPGLContext *ctx, uint32_t d_width, } HWND win = ctx->vo->w32->window; - HDC windc = vo_w32_get_dc(ctx->vo, win); + HDC windc = GetDC(win); bool res = false; HGLRC new_context = wglCreateContext(windc); @@ -2084,7 +2084,7 @@ static bool create_window_w32_old(struct MPGLContext *ctx, uint32_t d_width, res = true; out: - vo_w32_release_dc(ctx->vo, win, windc); + ReleaseDC(win, windc); return res; } @@ -2101,7 +2101,7 @@ static bool create_window_w32_gl3(struct MPGLContext *ctx, uint32_t d_width, return true; // not reusing it breaks gl3! HWND win = ctx->vo->w32->window; - HDC windc = vo_w32_get_dc(ctx->vo, win); + HDC windc = GetDC(win); HGLRC new_context = 0; new_context = wglCreateContext(windc); @@ -2200,9 +2200,9 @@ static void releaseGlContext_w32(MPGLContext *ctx) static void swapGlBuffers_w32(MPGLContext *ctx) { - HDC vo_hdc = vo_w32_get_dc(ctx->vo, ctx->vo->w32->window); + HDC vo_hdc = GetDC(ctx->vo->w32->window); SwapBuffers(vo_hdc); - vo_w32_release_dc(ctx->vo, ctx->vo->w32->window, vo_hdc); + ReleaseDC(ctx->vo->w32->window, vo_hdc); } #endif |