VirtualBox

Changeset 22592 in vbox for trunk/src/VBox/Additions/WINNT


Ignore:
Timestamp:
Aug 31, 2009 11:03:56 AM (15 years ago)
Author:
vboxsync
Message:

HGSMI/VBVA updates.

Location:
trunk/src/VBox/Additions/WINNT/Graphics/Display
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/screen.c

    r22548 r22592  
    3333#ifdef VBOX_WITH_HGSMI
    3434#include <iprt/asm.h>
     35#include <VBox/log.h>
    3536#include <VBox/HGSMI/HGSMI.h>
    3637#include <VBox/HGSMI/HGSMIChSetup.h>
     
    512513        {
    513514            /* Enable VBVA for this video mode. */
    514             vboxVbvaEnable (ppdev);
     515            ppdev->bHGSMISupported = vboxVbvaEnable (ppdev);
     516            LogRel(("VBoxDisp[%d]: VBVA %senabled\n", ppdev->iDevice, ppdev->bHGSMISupported? "": "not "));
    515517        }
    516518#endif /* VBOX_WITH_HGSMI */
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/vbox.c

    r22548 r22592  
    370370            pEnable->u32Flags  = bEnable? VBVA_F_ENABLE: VBVA_F_DISABLE;
    371371            pEnable->u32Offset = ppdev->layout.offVBVABuffer;
     372            pEnable->i32Result = VERR_NOT_SUPPORTED;
    372373
    373374            vboxHGSMIBufferSubmit (ppdev, p);
    374375
     376            if (bEnable)
     377            {
     378                bRc = RT_SUCCESS(pEnable->i32Result);
     379            }
     380            else
     381            {
     382                bRc = TRUE;
     383            }
     384
    375385            HGSMIHeapFree (&ppdev->hgsmiDisplayHeap, p);
    376 
    377             bRc = TRUE;
    378386        }
    379387    }
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