VirtualBox

Ignore:
Timestamp:
Nov 23, 2010 6:05:09 PM (14 years ago)
Author:
vboxsync
Message:

wddm/3d: aero multiscreen working

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  
    57595759    struct wined3d_context *context;
    57605760    GLenum gl_filter;
     5761#ifndef VBOX_WITH_WDDM
    57615762    POINT offset = {0, 0};
     5763#endif
    57625764    RECT src_rect, dst_rect;
    57635765
     
    58085810        TRACE("Source surface %p is onscreen\n", src_surface);
    58095811
     5812#ifndef VBOX_WITH_WDDM
    58105813        if(buffer == GL_FRONT) {
    58115814            RECT windowsize;
    58125815            UINT h;
    5813            
     5816
    58145817            ClientToScreen(context->win_handle, &offset);
    58155818            GetClientRect(context->win_handle, &windowsize);
     
    58245827            src_rect.top =  offset.y + h - src_rect.top;
    58255828            src_rect.bottom =  offset.y + h - src_rect.bottom;
    5826         } else {
     5829        }
     5830        else
     5831#endif
     5832        {
    58275833            src_rect.top = ((IWineD3DSurfaceImpl *)src_surface)->currentDesc.Height - src_rect.top;
    58285834            src_rect.bottom = ((IWineD3DSurfaceImpl *)src_surface)->currentDesc.Height - src_rect.bottom;
     
    58515857        TRACE("Destination surface %p is onscreen\n", dst_surface);
    58525858
     5859#ifndef VBOX_WITH_WDDM
    58535860        if(buffer == GL_FRONT) {
    58545861            RECT windowsize;
     
    58665873            dst_rect.top =  offset.y + h - dst_rect.top;
    58675874            dst_rect.bottom =  offset.y + h - dst_rect.bottom;
    5868         } else {
     5875        }
     5876        else
     5877#endif
     5878        {
    58695879            /* Screen coords = window coords, surface height = window height */
    58705880            dst_rect.top = ((IWineD3DSurfaceImpl *)dst_surface)->currentDesc.Height - dst_rect.top;
     
    69156925        return E_OUTOFMEMORY;
    69166926    }
    6917     This->swapchains = (IWineD3DSwapChain *)pvNewBuf;
     6927    This->swapchains = (IWineD3DSwapChain **)pvNewBuf;
    69186928    This->swapchains[This->NumberOfSwapChains] = swapchain;
    69196929    ++This->NumberOfSwapChains;
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/swapchain_base.c

    r33656 r34304  
    9191    start.y = 0;
    9292
     93#ifndef VBOX_WITH_WDDM
    9394    if (This->presentParms.Windowed) {
    9495        MapWindowPoints(This->win_handle, NULL, &start, 1);
    9596    }
     97#endif
    9698
    9799    IWineD3DSurface_BltFast(pDestSurface, start.x, start.y, This->frontBuffer, NULL, 0);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette