Lines Matching refs:hdc
815 if (!VBoxExtReleaseDC(context->win_handle, context->hdc))
818 context->hdc, GetLastError());
824 if (!(context->hdc = VBoxExtGetDC(context->win_handle)))
830 if (!context_set_pixel_format(context->gl_info, context->hdc, context->pixel_format))
833 context->pixel_format, context->hdc);
837 if (!pwglMakeCurrent(context->hdc, context->glCtx))
840 context->glCtx, context->hdc, GetLastError());
884 HWND wnd = WindowFromDC(context->hdc);
890 context->hdc, wnd, context->win_handle, winEr);
957 if (context->valid && restore_ctx != context->glCtx) pwglMakeCurrent(context->hdc, context->glCtx);
1058 VBoxExtReleaseDC(context->win_handle, context->hdc);
1060 VBoxExtReleaseDC(context->win_handle, context->hdc);
1172 TRACE("Switching to D3D context %p, GL context %p, device context %p.\n", ctx, ctx->glCtx, ctx->hdc);
1173 if (!pwglMakeCurrent(ctx->hdc, ctx->glCtx))
1177 ctx->glCtx, ctx->hdc, err);
1344 static int WineD3D_ChoosePixelFormat(IWineD3DDeviceImpl *This, HDC hdc,
1491 iPixelFormat = ChoosePixelFormat(hdc, &pfd);
1551 HDC hdc;
1574 if (!(hdc =
1633 pixel_format = WineD3D_ChoosePixelFormat(device, hdc, color_format_desc, ds_format_desc,
1640 pixel_format = WineD3D_ChoosePixelFormat(device, hdc, color_format_desc, ds_format_desc,
1651 DescribePixelFormat(hdc, pixel_format, sizeof(pfd), &pfd);
1652 if (!context_set_pixel_format(gl_info, hdc, pixel_format))
1654 ERR("Failed to set pixel format %d on device context %p.\n", pixel_format, hdc);
1658 ctx = pVBoxCreateContext(hdc
1719 ret->hdc = hdc;
2905 if (!pwglMakeCurrent(context->hdc, context->glCtx))
2909 context->hdc, context->glCtx, err);