VirtualBox

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


Ignore:
Timestamp:
Dec 3, 2010 11:06:34 AM (14 years ago)
Author:
vboxsync
Message:

Additions/common/VBoxVideo and Additions/WINNT/Graphics: modesetting clean-up

Location:
trunk/src/VBox/Additions/WINNT/Graphics
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/Makefile.kmk

    r34440 r34686  
    4949        $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp \
    5050        $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/VBVABase.cpp \
     51        $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/Modesetting.cpp \
    5152        VBoxDisp.def \
    5253        VBoxDisp.rc
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/Makefile.kmk

    r34429 r34686  
    4646        VBoxVideo.rc \
    4747        VBoxVideoHGSMI.cpp \
    48         $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp
     48        $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp \
     49        $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/Modesetting.cpp
    4950VBoxVideo_LIBS.x86    = \
    5051        $(PATH_SDK_W2K3DDK_LIB)/exsup.lib
     
    101102        VBoxVideoHGSMI.cpp \
    102103        $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp \
     104        $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/Modesetting.cpp \
    103105        VBoxVideo.cpp \
    104106    Helper.cpp \
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.cpp

    r34665 r34686  
    41594159        )
    41604160{
    4161     /* set the mode characteristics */
    4162     VBoxVideoCmnPortWriteUshort(VBE_DISPI_IOPORT_INDEX, VBE_DISPI_INDEX_XRES);
    4163     VBoxVideoCmnPortWriteUshort(VBE_DISPI_IOPORT_DATA, width);
    4164     VBoxVideoCmnPortWriteUshort(VBE_DISPI_IOPORT_INDEX, VBE_DISPI_INDEX_YRES);
    4165     VBoxVideoCmnPortWriteUshort(VBE_DISPI_IOPORT_DATA, height);
    4166     VBoxVideoCmnPortWriteUshort(VBE_DISPI_IOPORT_INDEX, VBE_DISPI_INDEX_BPP);
    4167     VBoxVideoCmnPortWriteUshort(VBE_DISPI_IOPORT_DATA, bpp);
    4168     /* enable the mode */
    4169     VBoxVideoCmnPortWriteUshort(VBE_DISPI_IOPORT_INDEX, VBE_DISPI_INDEX_ENABLE);
    4170     VBoxVideoCmnPortWriteUshort(VBE_DISPI_IOPORT_DATA, VBE_DISPI_ENABLED | VBE_DISPI_LFB_ENABLED);
    41714161#ifdef VBOX_WITH_WDDM
    41724162    /* encode linear offDisplay to xOffset & yOffset to ensure offset fits USHORT */
     
    41854175    Assert(xOffset <= 0xffff);
    41864176    Assert(yOffset <= 0xffff);
    4187     VBoxVideoCmnPortWriteUshort(VBE_DISPI_IOPORT_INDEX, VBE_DISPI_INDEX_X_OFFSET);
    4188     VBoxVideoCmnPortWriteUshort(VBE_DISPI_IOPORT_DATA, (USHORT)xOffset);
    4189     VBoxVideoCmnPortWriteUshort(VBE_DISPI_IOPORT_INDEX, VBE_DISPI_INDEX_Y_OFFSET);
    4190     VBoxVideoCmnPortWriteUshort(VBE_DISPI_IOPORT_DATA, (USHORT)yOffset);
    4191 #endif
     4177#else
     4178    ULONG xOffset = 0, yOffset = 0;
     4179#endif
     4180    VBoxVideoSetModeRegisters(width, height, width, bpp, (uint16_t)xOffset,
     4181                              (uint16_t)yOffset);
    41924182    /** @todo read from the port to see if the mode switch was successful */
    4193 
    4194     /* Tell the host that we now support graphics in the additions.
    4195      * @todo: Keep old behaviour, because VBoxVideoResetDevice is called on every graphics
    4196      *        mode switch and causes an OFF/ON sequence which is not handled by frontends
    4197      *        (for example Qt GUI debug build asserts when seamless is being enabled).
    4198      */
    4199     // VBoxVideoSetGraphicsCap(TRUE);
    42004183
    42014184    return TRUE;
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