Changeset 3155 in vbox for trunk/src/VBox/Main
- Timestamp:
- Jun 19, 2007 11:25:14 AM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 22077
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
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.