Changeset 49603 in vbox
- Timestamp:
- Nov 21, 2013 2:45:47 PM (11 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
-
Devices/Graphics/DevVGA.cpp (modified) (3 diffs)
-
Main/src-client/DisplayImpl.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r49507 r49603 1834 1834 fgcol = palette[cattr & 0x0f]; 1835 1835 if (cw != 9) { 1836 vga_draw_glyph8(d1, linesize, 1837 font_ptr, cheight, fgcol, bgcol, dscan); 1836 if (pThis->fRenderVRAM) 1837 vga_draw_glyph8(d1, linesize, 1838 font_ptr, cheight, fgcol, bgcol, dscan); 1838 1839 } else { 1839 1840 dup9 = 0; 1840 1841 if (ch >= 0xb0 && ch <= 0xdf && (pThis->ar[0x10] & 0x04)) 1841 1842 dup9 = 1; 1842 vga_draw_glyph9(d1, linesize, 1843 font_ptr, cheight, fgcol, bgcol, dup9); 1843 if (pThis->fRenderVRAM) 1844 vga_draw_glyph9(d1, linesize, 1845 font_ptr, cheight, fgcol, bgcol, dup9); 1844 1846 } 1845 1847 if (src == cursor_ptr && … … 1856 1858 d = d1 + (linesize * line_start << dscan); 1857 1859 if (cw != 9) { 1858 vga_draw_glyph8(d, linesize, 1859 cursor_glyph, h, fgcol, bgcol, dscan); 1860 if (pThis->fRenderVRAM) 1861 vga_draw_glyph8(d, linesize, 1862 cursor_glyph, h, fgcol, bgcol, dscan); 1860 1863 } else { 1861 vga_draw_glyph9(d, linesize, 1862 cursor_glyph, h, fgcol, bgcol, 1); 1864 if (pThis->fRenderVRAM) 1865 vga_draw_glyph9(d, linesize, 1866 cursor_glyph, h, fgcol, bgcol, 1); 1863 1867 } 1864 1868 } … … 4946 4950 LogFlow(("vgaPortSetRenderVRAM: fRender = %d\n", fRender)); 4947 4951 4952 int rc = PDMCritSectEnter(&pThis->CritSect, VERR_SEM_BUSY); 4953 AssertRC(rc); 4954 4948 4955 pThis->fRenderVRAM = fRender; 4956 4957 PDMCritSectLeave(&pThis->CritSect); 4949 4958 } 4950 4959 -
trunk/src/VBox/Main/src-client/DisplayImpl.cpp
r49474 r49603 679 679 } 680 680 681 mLastAddress = pvVRAM; 682 mLastBytesPerLine = cbLine; 683 mLastBitsPerPixel = bpp; 684 mLastWidth = w; 685 mLastHeight = h; 686 mLastFlags = flags; 681 if (uScreenId == VBOX_VIDEO_PRIMARY_SCREEN) 682 { 683 mLastAddress = pvVRAM; 684 mLastBytesPerLine = cbLine; 685 mLastBitsPerPixel = bpp; 686 mLastWidth = w; 687 mLastHeight = h; 688 mLastFlags = flags; 689 } 687 690 688 691 ULONG pixelFormat; … … 729 732 return VINF_VGA_RESIZE_IN_PROGRESS; 730 733 } 734 735 /* Framebuffer will be invalid during resize, make sure that it is not accessed. */ 736 if (uScreenId == VBOX_VIDEO_PRIMARY_SCREEN) 737 mpDrv->pUpPort->pfnSetRenderVRAM (mpDrv->pUpPort, false); 731 738 732 739 int rc = callFramebufferResize (maFramebuffers[uScreenId].pFramebuffer, uScreenId, … … 794 801 } 795 802 803 /* Inform VRDP server about the change of display parameters. 804 * Must be done before calling NotifyUpdate below. 805 */ 806 LogRelFlowFunc(("Calling VRDP\n")); 807 mParent->consoleVRDPServer()->SendResize(); 808 796 809 /* @todo Merge these two 'if's within one 'if (!pFBInfo->pFramebuffer.isNull())' */ 797 810 if (uScreenId == VBOX_VIDEO_PRIMARY_SCREEN && !pFBInfo->pFramebuffer.isNull()) … … 864 877 } 865 878 #endif /* DEBUG_sunlover */ 866 867 /* Inform VRDP server about the change of display parameters. */868 LogRelFlowFunc(("Calling VRDP\n"));869 mParent->consoleVRDPServer()->SendResize();870 879 871 880 #if defined(VBOX_WITH_HGCM) && defined(VBOX_WITH_CROGL)
Note:
See TracChangeset
for help on using the changeset viewer.

