Changeset 33540 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Display
- Timestamp:
- Oct 28, 2010 9:27:05 AM (14 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Display
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Display/color.c
r28800 r33540 46 46 * 8x8 pile of bits in the form of a 1BPP bitmap. It can also take an 47 47 * RGB value and make an 8x8 bitmap. These can then be used as brushes 48 * to simulate color unavai ble on the device.48 * to simulate color unavailable on the device. 49 49 * 50 50 * For monochrome the basic algorithm is equivalent to turning on bits … … 60 60 * 63 31 55 23 61 29 53 21 61 61 * 62 * Reference: A Survey of Techniques for the Display of Contin ous62 * Reference: A Survey of Techniques for the Display of Continuous 63 63 * Tone Pictures on Bilevel Displays,; 64 64 * Jarvis, Judice, & Ninke; … … 584 584 585 585 // I = .30R + .59G + .11B 586 // For conv ience the following ratios are used:586 // For convenience the following ratios are used: 587 587 // 588 588 // 77/256 = 30.08% -
trunk/src/VBox/Additions/WINNT/Graphics/Display/driver.h
r33048 r33540 256 256 typedef struct _VRDPCLIPRECTS 257 257 { 258 RECTL rclDstOrig; /* Original bounding rectan cle. */258 RECTL rclDstOrig; /* Original bounding rectangle. */ 259 259 RECTL rclDst; /* Bounding rectangle of all rects. */ 260 260 CLIPRECTS rects; /* Rectangles to update. */ -
trunk/src/VBox/Additions/WINNT/Graphics/Display/drv.c
r33048 r33540 35 35 * 36 36 * 1) RDP orders: BitBlt, RectFill, Text. 37 * These are the simpl iest ones.37 * These are the simplest ones. 38 38 * 39 39 * 2) Caching: Bitmap, glyph, brush. -
trunk/src/VBox/Additions/WINNT/Graphics/Display/enable.c
r33048 r33540 632 632 633 633 // 634 // On NT4.0 we create a GDI managed bitmap as the prima y surface. But634 // On NT4.0 we create a GDI managed bitmap as the primary surface. But 635 635 // on NT5.0 we create a device managed primary. 636 636 // 637 // On NT4.0 we still use our driver's acc leration capabilities by637 // On NT4.0 we still use our driver's acceleration capabilities by 638 638 // doing a trick with EngLockSurface on the GDI managed primary. 639 639 // … … 687 687 // 688 688 // Jam in the value of dhsurf into screen SURFOBJ. We do this to 689 // make sure the driver acc lerates Drv calls we hook and not689 // make sure the driver accelerates Drv calls we hook and not 690 690 // punt them back to GDI as the SURFOBJ's dhsurf = 0. 691 691 // -
trunk/src/VBox/Additions/WINNT/Graphics/Display/screen.c
r33048 r33540 617 617 // 618 618 // try to get it from the miniport. 619 // if the miniport doesn ot support this feature, use defaults.619 // if the miniport doesn't support this feature, use defaults. 620 620 // 621 621 … … 765 765 * 766 766 * Calls the miniport to get the list of modes supported by the kernel driver, 767 * and returns the list of modes supported by the di play driver among those767 * and returns the list of modes supported by the display driver among those 768 768 * 769 769 * returns the number of entries in the videomode buffer. -
trunk/src/VBox/Additions/WINNT/Graphics/Display/vrdp.c
r33004 r33540 576 576 } 577 577 578 /* No inte section. */578 /* No intersection. */ 579 579 return FALSE; 580 580 } -
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispCm.cpp
r33116 r33540 172 172 173 173 pCmd->EscapeHdr.escapeCode = VBOXESC_GETVBOXVIDEOCMCMD; 174 /* lock to ensure the context is not d istructed */174 /* lock to ensure the context is not destroyed */ 175 175 EnterCriticalSection(&pSession->CritSect); 176 176 /* use any context for identifying the kernel CmSession. We're using the first one */ -
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3D.cpp
r33418 r33540 1037 1037 uint32_t cbFormatOps = cFormats * sizeof (FORMATOP); 1038 1038 cbFormatOps = (cbFormatOps + 7) & ~3; 1039 /* ensure the surf descs are 8 byte al ligned */1039 /* ensure the surf descs are 8 byte aligned */ 1040 1040 uint32_t offSurfDescs = (cbFormatOps + 7) & ~3; 1041 1041 uint32_t cbSurfDescs = cSurfDescs * sizeof (DDSURFACEDESC); … … 1453 1453 case D3DDDIPOOL_LOCALVIDMEM: 1454 1454 case D3DDDIPOOL_NONLOCALVIDMEM: 1455 /* @todo: what would be prop per here? */1455 /* @todo: what would be proper here? */ 1456 1456 return D3DPOOL_DEFAULT; 1457 1457 default: … … 3803 3803 { 3804 3804 hr = pDevice9If->DrawPrimitive(pData->PrimitiveType, 3805 0 /* <- since we use our own eStreamSource buffer which has data at the very beginning*/,3805 0 /* <- since we use our own StreamSource buffer which has data at the very beginning*/, 3806 3806 pData->PrimitiveCount); 3807 3807 Assert(hr == S_OK); … … 7382 7382 else 7383 7383 { 7384 /* this is a "generic" resource whose creation is initia ded by the UMD */7384 /* this is a "generic" resource whose creation is initiated by the UMD */ 7385 7385 Assert(pData->PrivateDriverDataSize == sizeof (VBOXWDDM_RCINFO)); 7386 7386 if (pData->PrivateDriverDataSize == sizeof (VBOXWDDM_RCINFO)) -
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3DIf.cpp
r32281 r33540 101 101 102 102 Assert(bResult != -1); 103 if(bResult == -1) /* error occur ed */103 if(bResult == -1) /* error occurred */ 104 104 break; 105 105 -
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxScreen.cpp
r33116 r33540 450 450 } 451 451 452 if(bResult == -1) /* error occur ed */452 if(bResult == -1) /* error occurred */ 453 453 { 454 454 DWORD winEr = GetLastError();
Note:
See TracChangeset
for help on using the changeset viewer.