VirtualBox

儲存庫 vbox 的更動 18307


忽略:
時間撮記:
2009-3-26 下午12:18:35 (16 年 以前)
作者:
vboxsync
訊息:

Additions/x11/vboxvideo: add a few fallback cases to the driver

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxutils.c

    r17318 r18307  
    465465    rc = VbglR3SetPointerShapeReq(pVBox->reqp);
    466466    if (RT_FAILURE(rc))
     467    {
    467468        xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "Could not hide the virtual mouse pointer.\n");
     469        /* Play safe, and disable the hardware cursor until the next mode
     470         * switch, since obviously something happened that we didn't
     471         * anticipate. */
     472        pVBox->forceSWCursor = TRUE;
     473    }
    468474}
    469475
     
    477483        pVBox->reqp->fFlags = VBOX_MOUSE_POINTER_VISIBLE;
    478484        rc = VbglR3SetPointerShapeReq(pVBox->reqp);
    479         if (RT_FAILURE(rc))
     485        if (RT_FAILURE(rc)) {
    480486            xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "Could not unhide the virtual mouse pointer.\n");
     487            /* Play safe, and disable the hardware cursor until the next mode
     488             * switch, since obviously something happened that we didn't
     489             * anticipate. */
     490            pVBox->forceSWCursor = TRUE;
     491        }
    481492    }
    482493}
     
    496507
    497508    rc = VbglR3SetPointerShapeReq(reqp);
    498     if (RT_FAILURE(rc))
     509    if (RT_FAILURE(rc)) {
    499510        xf86DrvMsg(pScrn->scrnIndex, X_ERROR,  "Unable to set the virtual mouse pointer image.\n");
     511        /* Play safe, and disable the hardware cursor until the next mode
     512         * switch, since obviously something happened that we didn't
     513         * anticipate. */
     514        pVBox->forceSWCursor = TRUE;
     515    }
    500516}
    501517
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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