Changeset 34304 in vbox for trunk/src/VBox/Additions/WINNT/Graphics
- Timestamp:
- Nov 23, 2010 6:05:09 PM (14 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/device.c
r33836 r34304 5759 5759 struct wined3d_context *context; 5760 5760 GLenum gl_filter; 5761 #ifndef VBOX_WITH_WDDM 5761 5762 POINT offset = {0, 0}; 5763 #endif 5762 5764 RECT src_rect, dst_rect; 5763 5765 … … 5808 5810 TRACE("Source surface %p is onscreen\n", src_surface); 5809 5811 5812 #ifndef VBOX_WITH_WDDM 5810 5813 if(buffer == GL_FRONT) { 5811 5814 RECT windowsize; 5812 5815 UINT h; 5813 5816 5814 5817 ClientToScreen(context->win_handle, &offset); 5815 5818 GetClientRect(context->win_handle, &windowsize); … … 5824 5827 src_rect.top = offset.y + h - src_rect.top; 5825 5828 src_rect.bottom = offset.y + h - src_rect.bottom; 5826 } else { 5829 } 5830 else 5831 #endif 5832 { 5827 5833 src_rect.top = ((IWineD3DSurfaceImpl *)src_surface)->currentDesc.Height - src_rect.top; 5828 5834 src_rect.bottom = ((IWineD3DSurfaceImpl *)src_surface)->currentDesc.Height - src_rect.bottom; … … 5851 5857 TRACE("Destination surface %p is onscreen\n", dst_surface); 5852 5858 5859 #ifndef VBOX_WITH_WDDM 5853 5860 if(buffer == GL_FRONT) { 5854 5861 RECT windowsize; … … 5866 5873 dst_rect.top = offset.y + h - dst_rect.top; 5867 5874 dst_rect.bottom = offset.y + h - dst_rect.bottom; 5868 } else { 5875 } 5876 else 5877 #endif 5878 { 5869 5879 /* Screen coords = window coords, surface height = window height */ 5870 5880 dst_rect.top = ((IWineD3DSurfaceImpl *)dst_surface)->currentDesc.Height - dst_rect.top; … … 6915 6925 return E_OUTOFMEMORY; 6916 6926 } 6917 This->swapchains = (IWineD3DSwapChain * )pvNewBuf;6927 This->swapchains = (IWineD3DSwapChain **)pvNewBuf; 6918 6928 This->swapchains[This->NumberOfSwapChains] = swapchain; 6919 6929 ++This->NumberOfSwapChains; -
trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/swapchain_base.c
r33656 r34304 91 91 start.y = 0; 92 92 93 #ifndef VBOX_WITH_WDDM 93 94 if (This->presentParms.Windowed) { 94 95 MapWindowPoints(This->win_handle, NULL, &start, 1); 95 96 } 97 #endif 96 98 97 99 IWineD3DSurface_BltFast(pDestSurface, start.x, start.y, This->frontBuffer, NULL, 0);
Note:
See TracChangeset
for help on using the changeset viewer.