Changeset 49783 in vbox
- Timestamp:
- Dec 5, 2013 9:27:52 AM (11 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/DisplayImpl.h
r49474 r49783 204 204 private: 205 205 206 voidupdateDisplayData(void);206 int updateDisplayData(void); 207 207 208 208 #ifdef VBOX_WITH_CRHGSMI -
trunk/src/VBox/Main/src-client/DisplayImpl.cpp
r49603 r49783 811 811 { 812 812 /* Primary framebuffer has completed the resize. Update the connector data for VGA device. */ 813 updateDisplayData();813 int rc2 = updateDisplayData(); 814 814 815 815 /* Check the framebuffer pixel format to setup the rendering in VGA device. */ … … 822 822 * pixels from VRAM to the framebuffer. 823 823 */ 824 if (pFBInfo->fDisabled )824 if (pFBInfo->fDisabled || RT_FAILURE(rc2)) 825 825 mpDrv->pUpPort->pfnSetRenderVRAM (mpDrv->pUpPort, false); 826 826 else … … 3192 3192 * @thread EMT 3193 3193 */ 3194 voidDisplay::updateDisplayData(void)3194 int Display::updateDisplayData(void) 3195 3195 { 3196 3196 LogRelFlowFunc(("\n")); … … 3198 3198 /* the driver might not have been constructed yet */ 3199 3199 if (!mpDrv) 3200 return ;3200 return VINF_SUCCESS; 3201 3201 3202 3202 #ifdef VBOX_STRICT … … 3239 3239 AssertComRC (rc); 3240 3240 3241 if ( (width != mLastWidth && mLastWidth != 0) 3242 || (height != mLastHeight && mLastHeight != 0)) 3243 { 3244 LogRel(("updateDisplayData: size mismatch w %d(%d) h %d(%d)\n", 3245 width, mLastWidth, height, mLastHeight)); 3246 return VERR_INVALID_STATE; 3247 } 3248 3241 3249 mpDrv->IConnector.pu8Data = (uint8_t *) address; 3242 3250 mpDrv->IConnector.cbScanline = bytesPerLine; … … 3255 3263 } 3256 3264 LogRelFlowFunc(("leave\n")); 3265 return VINF_SUCCESS; 3257 3266 } 3258 3267
Note:
See TracChangeset
for help on using the changeset viewer.