VirtualBox

Ignore:
Timestamp:
Mar 23, 2010 3:36:18 PM (15 years ago)
Author:
vboxsync
Message:

wddm: mouse pointer integration fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoWddm.cpp

    r27629 r27640  
    20062006{
    20072007    PVIDEO_POINTER_ATTRIBUTES pPointerAttributes = &pPointerInfo->Attributes.data;
    2008     /* pPointerAttributes maointains the visibility state, clear all except visibility */
    2009     pPointerAttributes->Enable &= 0xffff0000 | VBOX_MOUSE_POINTER_VISIBLE;
     2008    /* pPointerAttributes maintains the visibility state, clear all except visibility */
     2009    pPointerAttributes->Enable &= VBOX_MOUSE_POINTER_VISIBLE;
    20102010
    20112011    Assert(pSetPointerShape->Flags.Value == 1 || pSetPointerShape->Flags.Value == 2);
     
    20462046
    20472047    pPointerAttributes->Enable |= VBOX_MOUSE_POINTER_SHAPE;
    2048     //
    2049     // Initialize Pointer attributes and position
    2050     //
    2051     if (pPointerAttributes->Enable & VBOX_MOUSE_POINTER_VISIBLE)
    2052     {
    2053         /* New coordinates of pointer's hot spot */
    2054         pPointerAttributes->Column = (SHORT)(pPointerInfo->xPos) - (SHORT)(pSetPointerShape->YHot);
    2055         pPointerAttributes->Row    = (SHORT)(pPointerInfo->yPos) - (SHORT)(pSetPointerShape->YHot);
    2056     }
    2057     else
    2058     {
    2059         /* Pointer should be created invisible */
    2060         pPointerAttributes->Column = -1;
    2061         pPointerAttributes->Row    = -1;
    2062     }
    2063 
    2064     /* VBOX: We have to pass to miniport hot spot coordinates and alpha flag.
    2065      * They will be encoded in the pPointerAttributes::Enable field.
     2048
     2049    /*
     2050     * The hot spot coordinates and alpha flag will be encoded in the pPointerAttributes::Enable field.
    20662051     * High word will contain hot spot info and low word - flags.
    20672052     */
    2068 
    20692053    pPointerAttributes->Enable |= (pSetPointerShape->YHot & 0xFF) << 24;
    20702054    pPointerAttributes->Enable |= (pSetPointerShape->XHot & 0xFF) << 16;
     
    20792063    CONST DXGKARG_SETPOINTERPOSITION*  pSetPointerPosition)
    20802064{
    2081     dfprintf(("==> "__FUNCTION__ ", hAdapter(0x%x)\n", hAdapter));
     2065//    dfprintf(("==> "__FUNCTION__ ", hAdapter(0x%x)\n", hAdapter));
    20822066
    20832067    vboxVDbgBreakFv();
     
    20992083    }
    21002084
    2101     pPointerInfo->xPos = pSetPointerPosition->X;
    2102     pPointerInfo->yPos = pSetPointerPosition->Y;
     2085    pPointerAttributes->Column = pSetPointerPosition->X;
     2086    pPointerAttributes->Row = pSetPointerPosition->Y;
    21032087
    21042088    if (bNotifyVisibility && vboxQueryHostWantsAbsolute())
     
    21162100    }
    21172101
    2118     dfprintf(("<== "__FUNCTION__ ", hAdapter(0x%x)\n", hAdapter));
     2102//    dfprintf(("<== "__FUNCTION__ ", hAdapter(0x%x)\n", hAdapter));
    21192103
    21202104    return STATUS_SUCCESS;
     
    21382122        PDEVICE_EXTENSION pDevExt = (PDEVICE_EXTENSION)hAdapter;
    21392123        PVBOXWDDM_POINTER_INFO pPointerInfo = &pDevExt->aSources[pSetPointerShape->VidPnSourceId].PointerInfo;
     2124        /* @todo: to avoid extra data copy and extra heap allocation,
     2125         *  need to maintain the pre-allocated HGSMI buffer and convert the data directly to it */
    21402126        if (vboxVddmPointerShapeToAttributes(pSetPointerShape, pPointerInfo))
    21412127        {
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