Changeset 52885 in vbox for trunk/src/VBox/Devices/Graphics
- Timestamp:
- Sep 29, 2014 11:35:52 AM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 96311
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r52504 r52885 2141 2141 uint8_t *src = s->CTX_SUFF(vram_ptr) + offsetSource; 2142 2142 2143 for(unsigned y = yStart; y < yStart + height; y++) 2143 for(unsigned y = yStart; y < yStart + height; y++) 2144 2144 { 2145 2145 vga_draw_line(s, dest, src, width); … … 2215 2215 linesize = pDrv->cbScanline; 2216 2216 2217 for(y = 0; y < height; y++) 2217 for(y = 0; y < height; y++) 2218 2218 { 2219 2219 addr = addr1 + y * bwidth; … … 4117 4117 pHlp->pfnPrintf(pHlp, "cclks per frame: %d\n", r->frame_cclks); 4118 4118 pHlp->pfnPrintf(pHlp, "cclk time (ns) : %d\n", r->cclk_ns); 4119 vfreq_hz = 1000000000 / r->frame_ns; 4120 hfreq_hz = 1000000000 / r->h_total_ns; 4121 pHlp->pfnPrintf(pHlp, "vfreq: %d Hz, hfreq: %d.%03d kHz\n", 4122 vfreq_hz, hfreq_hz / 1000, hfreq_hz % 1000); 4119 if (r->frame_ns && r->h_total_ns) /* Careful in case state is temporarily invalid. */ 4120 { 4121 vfreq_hz = 1000000000 / r->frame_ns; 4122 hfreq_hz = 1000000000 / r->h_total_ns; 4123 pHlp->pfnPrintf(pHlp, "vfreq: %d Hz, hfreq: %d.%03d kHz\n", 4124 vfreq_hz, hfreq_hz / 1000, hfreq_hz % 1000); 4125 } 4123 4126 } 4124 4127 pHlp->pfnPrintf(pHlp, "display refresh interval: %u ms\n", pThis->cMilliesRefreshInterval); … … 5328 5331 LogFlow(("vgaR3IORegionMap: iRegion=%d GCPhysAddress=%RGp cb=%#x enmType=%d\n", iRegion, GCPhysAddress, cb, enmType)); 5329 5332 #ifdef VBOX_WITH_VMSVGA 5330 AssertReturn((iRegion == ((pThis->fVMSVGAEnabled) ? 1 : 0)) && (enmType == ((pThis->fVMSVGAEnabled) ? PCI_ADDRESS_SPACE_MEM : PCI_ADDRESS_SPACE_MEM_PREFETCH)), VERR_INTERNAL_ERROR); 5333 AssertReturn((iRegion == ((pThis->fVMSVGAEnabled) ? 1 : 0)) && (enmType == ((pThis->fVMSVGAEnabled) ? PCI_ADDRESS_SPACE_MEM : PCI_ADDRESS_SPACE_MEM_PREFETCH)), VERR_INTERNAL_ERROR); 5331 5334 #else 5332 5335 AssertReturn(iRegion == 0 && enmType == PCI_ADDRESS_SPACE_MEM_PREFETCH, VERR_INTERNAL_ERROR);
Note:
See TracChangeset
for help on using the changeset viewer.