Lines Matching refs:This

9  *This library is free software; you can redistribute it and/or
14 *This library is distributed in the hope that it will be useful,
41 IWineD3DSwapChainImpl *This = (IWineD3DSwapChainImpl *)iface;
46 IWineD3DSwapChain_SetGammaRamp(iface, 0, &This->orig_gamma);
49 if(This->frontBuffer) {
50 IWineD3DSurface_SetContainer(This->frontBuffer, 0);
51 if (IWineD3DSurface_Release(This->frontBuffer) > 0)
53 WARN("(%p) Something's still holding the front buffer\n",This);
57 if(This->backBuffer) {
59 for(i = 0; i < This->presentParms.BackBufferCount; i++) {
60 IWineD3DSurface_SetContainer(This->backBuffer[i], 0);
61 if (IWineD3DSurface_Release(This->backBuffer[i]) > 0)
63 WARN("(%p) Something's still holding the back buffer\n",This);
66 HeapFree(GetProcessHeap(), 0, This->backBuffer);
70 * This will restore the screen resolution to what it was before creating the swapchain. In case of d3d8 and d3d9
74 if(This->presentParms.Windowed == FALSE && This->presentParms.AutoRestoreDisplayMode) {
75 mode.Width = This->orig_width;
76 mode.Height = This->orig_height;
78 mode.Format = This->orig_fmt;
79 IWineD3DDevice_SetDisplayMode((IWineD3DDevice *)This->device, 0, &mode);
83 HeapFree(GetProcessHeap(), 0, This->context);
85 HeapFree(GetProcessHeap(), 0, This);
94 * This: Surface to copy from
98 void x11_copy_to_screen(IWineD3DSwapChainImpl *This, const RECT *rc)
100 IWineD3DSurfaceImpl *front = (IWineD3DSurfaceImpl *) This->frontBuffer;
112 hDisplayWnd = This->win_handle;
122 if(This->presentParms.Windowed) {
126 /* FIXME: This doesn't work... if users really want to run
176 IWineD3DSwapChainImpl *This = (IWineD3DSwapChainImpl *)iface;
178 This->win_handle = window;
183 IWineD3DSwapChainImpl *This = (IWineD3DSwapChainImpl *) iface;
186 if(!This->backBuffer) {
190 front = (IWineD3DSurfaceImpl *) This->frontBuffer;
191 back = (IWineD3DSurfaceImpl *) This->backBuffer[0];
252 x11_copy_to_screen(This, NULL);