- Timestamp:
- Jun 19, 2007 11:25:14 AM (18 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r3153 r3155 4397 4397 if (pData->pDrv) 4398 4398 { 4399 if ( pData->pDrv->pu8Data4400 &&pData->pDrv->pfnRefresh4399 /* pData->pDrv->pu8Data can be NULL when there is no framebuffer. */ 4400 if ( pData->pDrv->pfnRefresh 4401 4401 && pData->pDrv->pfnResize 4402 4402 && pData->pDrv->pfnUpdateRect) … … 4404 4404 else 4405 4405 { 4406 Assert(pData->pDrv->pu8Data);4407 4406 Assert(pData->pDrv->pfnRefresh); 4408 4407 Assert(pData->pDrv->pfnResize); -
trunk/src/VBox/Main/ConsoleImpl.cpp
r3127 r3155 4936 4936 ULONG ulHeightReduction; 4937 4937 IFramebuffer *pFramebuffer = pConsole->getDisplay()->getFramebuffer(); 4938 hrc = pFramebuffer->COMGETTER(HeightReduction)(&ulHeightReduction); H(); 4938 if (pFramebuffer) 4939 { 4940 hrc = pFramebuffer->COMGETTER(HeightReduction)(&ulHeightReduction); H(); 4941 } 4942 else 4943 { 4944 /* If framebuffer is not available, there is no height reduction. */ 4945 ulHeightReduction = 0; 4946 } 4939 4947 rc = CFGMR3InsertInteger(pCfg, "HeightReduction", ulHeightReduction); RC_CHECK(); 4940 4948 -
trunk/src/VBox/Main/MouseImpl.cpp
r2981 r3155 274 274 ComAssertComRCRet (rc, rc); 275 275 276 uint32_t mouseXAbs = (x * 0xFFFF) / displayWidth;277 uint32_t mouseYAbs = (y * 0xFFFF) / displayHeight;276 uint32_t mouseXAbs = displayWidth? (x * 0xFFFF) / displayWidth: 0; 277 uint32_t mouseYAbs = displayHeight? (y * 0xFFFF) / displayHeight: 0; 278 278 279 279 /* -
trunk/src/VBox/Main/VMMDevInterface.cpp
r3076 r3155 269 269 return VERR_INVALID_PARAMETER; 270 270 IFramebuffer *framebuffer = pDrv->pVMMDev->getParent()->getDisplay()->getFramebuffer(); 271 Assert(framebuffer); 272 framebuffer->VideoModeSupported(width, height, bpp, (BOOL*)fSupported); 271 if (framebuffer) 272 framebuffer->VideoModeSupported(width, height, bpp, (BOOL*)fSupported); 273 else 274 *fSupported = true; 273 275 return VINF_SUCCESS; 274 276 } … … 281 283 return VERR_INVALID_PARAMETER; 282 284 IFramebuffer *framebuffer = pDrv->pVMMDev->getParent()->getDisplay()->getFramebuffer(); 283 Assert(framebuffer); 284 framebuffer->COMGETTER(HeightReduction)((ULONG*)heightReduction); 285 if (framebuffer) 286 framebuffer->COMGETTER(HeightReduction)((ULONG*)heightReduction); 287 else 288 *heightReduction = 0; 285 289 return VINF_SUCCESS; 286 290 }
Note:
See TracChangeset
for help on using the changeset viewer.