Changeset 34686 in vbox for trunk/src/VBox/Additions/WINNT
- Timestamp:
- Dec 3, 2010 11:06:34 AM (14 years ago)
- 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 49 49 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp \ 50 50 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/VBVABase.cpp \ 51 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/Modesetting.cpp \ 51 52 VBoxDisp.def \ 52 53 VBoxDisp.rc -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/Makefile.kmk
r34429 r34686 46 46 VBoxVideo.rc \ 47 47 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 49 50 VBoxVideo_LIBS.x86 = \ 50 51 $(PATH_SDK_W2K3DDK_LIB)/exsup.lib … … 101 102 VBoxVideoHGSMI.cpp \ 102 103 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp \ 104 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/Modesetting.cpp \ 103 105 VBoxVideo.cpp \ 104 106 Helper.cpp \ -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.cpp
r34665 r34686 4159 4159 ) 4160 4160 { 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);4171 4161 #ifdef VBOX_WITH_WDDM 4172 4162 /* encode linear offDisplay to xOffset & yOffset to ensure offset fits USHORT */ … … 4185 4175 Assert(xOffset <= 0xffff); 4186 4176 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 VBoxVideo CmnPortWriteUshort(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); 4192 4182 /** @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 graphics4196 * mode switch and causes an OFF/ON sequence which is not handled by frontends4197 * (for example Qt GUI debug build asserts when seamless is being enabled).4198 */4199 // VBoxVideoSetGraphicsCap(TRUE);4200 4183 4201 4184 return TRUE;
Note:
See TracChangeset
for help on using the changeset viewer.