comparison libvo/w32_common.c @ 24315:12f2487fb845

Fix compilation after patch to remove global vo_hdc
author reimar
date Mon, 03 Sep 2007 13:18:26 +0000
parents 20359547f3c3
children a6cc5f6799cb
comparison
equal deleted inserted replaced
24314:20359547f3c3 24315:12f2487fb845
306 pfd.cColorBits = 24; 306 pfd.cColorBits = 24;
307 pfd.iLayerType = PFD_MAIN_PLANE; 307 pfd.iLayerType = PFD_MAIN_PLANE;
308 pf = ChoosePixelFormat(vo_hdc, &pfd); 308 pf = ChoosePixelFormat(vo_hdc, &pfd);
309 if (!pf) { 309 if (!pf) {
310 mp_msg(MSGT_VO, MSGL_ERR, "vo: win32: unable to select a valid pixel format!\n"); 310 mp_msg(MSGT_VO, MSGL_ERR, "vo: win32: unable to select a valid pixel format!\n");
311 ReleaseDC(vo_hdc); 311 ReleaseDC(vo_window, vo_hdc);
312 return 0; 312 return 0;
313 } 313 }
314 314
315 SetPixelFormat(vo_hdc, pf, &pfd); 315 SetPixelFormat(vo_hdc, pf, &pfd);
316 316
317 mp_msg(MSGT_VO, MSGL_V, "vo: win32: running at %dx%d with depth %d\n", vo_screenwidth, vo_screenheight, vo_depthonscreen); 317 mp_msg(MSGT_VO, MSGL_V, "vo: win32: running at %dx%d with depth %d\n", vo_screenwidth, vo_screenheight, vo_depthonscreen);
318 318
319 ReleaseDC(vo_hdc); 319 ReleaseDC(vo_window, vo_hdc);
320 return 1; 320 return 1;
321 } 321 }
322 322
323 int vo_w32_config(uint32_t width, uint32_t height, uint32_t flags) { 323 int vo_w32_config(uint32_t width, uint32_t height, uint32_t flags) {
324 // store original size for videomode switching 324 // store original size for videomode switching