Changeset 33264 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Miniport
- Timestamp:
- Oct 20, 2010 2:29:45 PM (14 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Miniport
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.cpp
r33252 r33264 764 764 break; 765 765 766 /* round down width to be a multiple of 8 */ 767 xres &= 0xFFF8; 766 /* round down width to be a multiple of 8 if necessary */ 767 if (!DeviceExtension->fAnyX) 768 xres &= 0xFFF8; 768 769 769 770 /* second test: does it fit within our VRAM? */ … … 976 977 #endif /* VBOX_WITH_MULTIMONITOR_FIX */ 977 978 } 978 /* round down to multiple of 8 */ 979 if ((xres & 0xfff8) != xres) 980 dprintf(("VBoxVideo: rounding down xres from %d to %d\n", xres, xres & 0xfff8)); 981 xres &= 0xfff8; 979 /* round down to multiple of 8 if necessary */ 980 if (!DeviceExtension->fAnyX) { 981 if ((xres & 0xfff8) != xres) 982 dprintf(("VBoxVideo: rounding down xres from %d to %d\n", xres, xres & 0xfff8)); 983 xres &= 0xfff8; 984 } 982 985 /* take the current values for the fields that are not set */ 983 986 #ifndef VBOX_WITH_WDDM … … 1735 1738 1736 1739 PDEVICE_EXTENSION pDevExt = (PDEVICE_EXTENSION)HwDeviceExtension; 1740 USHORT DispiId; 1737 1741 1738 1742 /* Initialize the request pointer. */ 1739 1743 pDevExt->u.primary.pvReqFlush = NULL; 1740 1744 1745 /* Check if the chip restricts horizontal resolution or not. */ 1746 VideoPortWritePortUshort((PUSHORT)VBE_DISPI_IOPORT_INDEX, VBE_DISPI_INDEX_ID); 1747 VideoPortWritePortUshort((PUSHORT)VBE_DISPI_IOPORT_DATA, VBE_DISPI_ID_ANYX); 1748 DispiId = VideoPortReadPortUshort((PUSHORT)VBE_DISPI_IOPORT_DATA); 1749 if (DispiId == VBE_DISPI_ID_ANYX) 1750 pDevExt->fAnyX = TRUE; 1751 else 1752 pDevExt->fAnyX = FALSE; 1753 1741 1754 vboxVideoInitCustomVideoModes(pDevExt); 1742 1755 -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.h
r33252 r33264 95 95 #define VBE_DISPI_ID_VBOX_VIDEO 0xBE00 96 96 #define VBE_DISPI_ID_HGSMI 0xBE01 97 #define VBE_DISPI_ID_ANYX 0xBE02 97 98 #define VBE_DISPI_DISABLED 0x00 98 99 #define VBE_DISPI_ENABLED 0x01 … … 332 333 VBOXWDDM_TARGET aTargets[VBOX_VIDEO_MAX_SCREENS]; 333 334 #endif 335 BOOLEAN fAnyX; /* Unrestricted horizontal resolution flag. */ 334 336 } DEVICE_EXTENSION, *PDEVICE_EXTENSION; 335 337
Note:
See TracChangeset
for help on using the changeset viewer.