Changeset 28205 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Apr 12, 2010 1:39:18 PM (15 years ago)
- Location:
- trunk/src/VBox/Frontends
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp
r27963 r28205 185 185 } 186 186 187 STDMETHOD(OnSnapshotTaken) 188 { 189 return S_OK; 190 } 191 192 STDMETHOD(OnSnapshotD iscarded)(IN_BSTR aMachineId, IN_BSTR aSnapshotId)193 { 194 return S_OK; 195 } 196 197 STDMETHOD(OnSnapshotChange) 187 STDMETHOD(OnSnapshotTaken)(IN_BSTR aMachineId, IN_BSTR aSnapshotId) 188 { 189 return S_OK; 190 } 191 192 STDMETHOD(OnSnapshotDeleted)(IN_BSTR aMachineId, IN_BSTR aSnapshotId) 193 { 194 return S_OK; 195 } 196 197 STDMETHOD(OnSnapshotChange)(IN_BSTR aMachineId, IN_BSTR aSnapshotId) 198 198 { 199 199 return S_OK; -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp
r26917 r28205 5 5 6 6 /* 7 * Copyright (C) 2006-20 09Sun Microsystems, Inc.7 * Copyright (C) 2006-2010 Sun Microsystems, Inc. 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestProp.cpp
r27927 r28205 144 144 } 145 145 146 STDMETHOD(OnSnapshotD iscarded)(IN_BSTR aMachineId,147 146 STDMETHOD(OnSnapshotDeleted)(IN_BSTR aMachineId, 147 IN_BSTR aSnapshotId) 148 148 { 149 149 return S_OK; -
trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp
r26782 r28205 5 5 6 6 /* 7 * Copyright (C) 2006-20 09Sun Microsystems, Inc.7 * Copyright (C) 2006-2010 Sun Microsystems, Inc. 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 37 37 using namespace com; 38 38 39 #if defined 39 #if defined(VBOXSDL_WITH_X11) 40 40 # include <X11/Xlib.h> 41 41 # include <X11/cursorfont.h> /* for XC_left_ptr */ 42 # if !defined 42 # if !defined(VBOX_WITHOUT_XCURSOR) 43 43 # include <X11/Xcursor/Xcursor.h> 44 44 # endif … … 103 103 struct PointerShapeChangeData 104 104 { 105 PointerShapeChangeData 106 107 : visible (aVisible), alpha (aAlpha), xHot (aXHot), yHot(aYHot),108 width (aWidth), height (aHeight), shape(NULL)105 PointerShapeChangeData(BOOL aVisible, BOOL aAlpha, ULONG aXHot, ULONG aYHot, 106 ULONG aWidth, ULONG aHeight, const uint8_t *aShape) 107 : visible(aVisible), alpha(aAlpha), xHot(aXHot), yHot(aYHot), 108 width(aWidth), height(aHeight), shape(NULL) 109 109 { 110 110 // make a copy of the shape … … 114 114 shape = new uint8_t [shapeSize]; 115 115 if (shape) 116 memcpy ((void *) shape, (void *)aShape, shapeSize);116 memcpy((void *)shape, (void *)aShape, shapeSize); 117 117 } 118 118 } … … 166 166 * Global Variables * 167 167 *******************************************************************************/ 168 #if defined (DEBUG_dmik)169 // my mini kbd doesn't have RCTRL...170 static int gHostKeyMod = KMOD_RSHIFT;171 static int gHostKeySym1 = SDLK_RSHIFT;172 static int gHostKeySym2 = SDLK_UNKNOWN;173 #else174 168 static int gHostKeyMod = KMOD_RCTRL; 175 169 static int gHostKeySym1 = SDLK_RCTRL; 176 170 static int gHostKeySym2 = SDLK_UNKNOWN; 177 #endif178 171 static const char *gHostKeyDisabledCombinations = ""; 179 172 static const char *gpszPidFile; … … 252 245 VBoxSDLCallback() 253 246 { 254 #if defined 247 #if defined(RT_OS_WINDOWS) 255 248 refcnt = 0; 256 249 #endif … … 331 324 BOOL registered) 332 325 { 333 NOREF 334 NOREF 335 NOREF 326 NOREF(mediaId); 327 NOREF(mediaType); 328 NOREF(registered); 336 329 return S_OK; 337 330 } … … 347 340 } 348 341 349 STDMETHOD(OnSnapshotTaken) 342 STDMETHOD(OnSnapshotTaken)(IN_BSTR aMachineId, IN_BSTR aSnapshotId) 350 343 { 351 344 return S_OK; 352 345 } 353 346 354 STDMETHOD(OnSnapshotD iscarded)(IN_BSTR aMachineId, IN_BSTR aSnapshotId)347 STDMETHOD(OnSnapshotDeleted)(IN_BSTR aMachineId, IN_BSTR aSnapshotId) 355 348 { 356 349 return S_OK; 357 350 } 358 351 359 STDMETHOD(OnSnapshotChange) 352 STDMETHOD(OnSnapshotChange)(IN_BSTR aMachineId, IN_BSTR aSnapshotId) 360 353 { 361 354 return S_OK; … … 383 376 VBoxSDLConsoleCallback() : m_fIgnorePowerOffEvents(false) 384 377 { 385 #if defined 378 #if defined(RT_OS_WINDOWS) 386 379 refcnt = 0; 387 380 #endif … … 409 402 NS_DECL_ISUPPORTS 410 403 411 STDMETHOD(OnMousePointerShapeChange) 412 404 STDMETHOD(OnMousePointerShapeChange)(BOOL visible, BOOL alpha, ULONG xHot, ULONG yHot, 405 ULONG width, ULONG height, BYTE *shape) 413 406 { 414 407 PointerShapeChangeData *data; 415 data = new PointerShapeChangeData 416 417 Assert 408 data = new PointerShapeChangeData(visible, alpha, xHot, yHot, width, height, 409 shape); 410 Assert(data); 418 411 if (!data) 419 412 return E_FAIL; … … 424 417 event.user.data1 = data; 425 418 426 int rc = PushSDLEventForSure 419 int rc = PushSDLEventForSure(&event); 427 420 if (rc) 428 421 delete data; … … 443 436 event.user.type = SDL_USER_EVENT_GUEST_CAP_CHANGED; 444 437 445 PushSDLEventForSure 438 PushSDLEventForSure(&event); 446 439 return S_OK; 447 440 } … … 498 491 } 499 492 500 STDMETHOD(OnNetworkAdapterChange) 493 STDMETHOD(OnNetworkAdapterChange)(INetworkAdapter *aNetworkAdapter) 501 494 { 502 495 return S_OK; 503 496 } 504 497 505 STDMETHOD(OnSerialPortChange) 498 STDMETHOD(OnSerialPortChange)(ISerialPort *aSerialPort) 506 499 { 507 500 return S_OK; 508 501 } 509 502 510 STDMETHOD(OnParallelPortChange) 503 STDMETHOD(OnParallelPortChange)(IParallelPort *aParallelPort) 511 504 { 512 505 return S_OK; … … 528 521 } 529 522 530 STDMETHOD(OnUSBDeviceStateChange) 531 523 STDMETHOD(OnUSBDeviceStateChange)(IUSBDevice *aDevice, BOOL aAttached, 524 IVirtualBoxErrorInfo *aError) 532 525 { 533 526 return S_OK; 534 527 } 535 528 536 STDMETHOD(OnSharedFolderChange) 529 STDMETHOD(OnSharedFolderChange)(Scope_T aScope) 537 530 { 538 531 return S_OK; 539 532 } 540 533 541 STDMETHOD(OnStorageControllerChange) 534 STDMETHOD(OnStorageControllerChange)() 542 535 { 543 536 return S_OK; … … 586 579 } 587 580 588 STDMETHOD(OnShowWindow) 581 STDMETHOD(OnShowWindow)(ULONG64 *winId) 589 582 { 590 583 #ifndef RT_OS_DARWIN … … 593 586 if (SDL_GetWMInfo(&info)) 594 587 { 595 #if defined 596 *winId = (ULONG64) 597 #elif defined 598 *winId = (ULONG64) 588 #if defined(VBOXSDL_WITH_X11) 589 *winId = (ULONG64)info.info.x11.wmwindow; 590 #elif defined(RT_OS_WINDOWS) 591 *winId = (ULONG64)info.window; 599 592 #else 600 593 AssertFailed(); … … 1528 1521 ComPtr<IStorageController> storageCtl; 1529 1522 com::SafeIfaceArray<IStorageController> aStorageControllers; 1530 CHECK_ERROR 1523 CHECK_ERROR(gMachine, COMGETTER(StorageControllers)(ComSafeArrayAsOutParam(aStorageControllers))); 1531 1524 for (size_t i = 0; i < aStorageControllers.size(); ++ i) 1532 1525 { 1533 1526 StorageBus_T storageBus = StorageBus_Null; 1534 1527 1535 CHECK_ERROR 1528 CHECK_ERROR(aStorageControllers[i], COMGETTER(Bus)(&storageBus)); 1536 1529 if (storageBus == StorageBus_IDE) 1537 1530 { … … 1543 1536 if (storageCtl) 1544 1537 { 1545 CHECK_ERROR 1538 CHECK_ERROR(storageCtl, COMGETTER(Name)(storageCtlName.asOutParam())); 1546 1539 gMachine->DetachDevice(storageCtlName, 0, 0); 1547 1540 } … … 1549 1542 { 1550 1543 storageCtlName = "IDE Controller"; 1551 CHECK_ERROR 1544 CHECK_ERROR(gMachine, AddStorageController(storageCtlName, 1552 1545 StorageBus_IDE, 1553 1546 storageCtl.asOutParam())); … … 1610 1603 ComPtr<IStorageController> storageCtl; 1611 1604 com::SafeIfaceArray<IStorageController> aStorageControllers; 1612 CHECK_ERROR 1605 CHECK_ERROR(gMachine, COMGETTER(StorageControllers)(ComSafeArrayAsOutParam(aStorageControllers))); 1613 1606 for (size_t i = 0; i < aStorageControllers.size(); ++ i) 1614 1607 { 1615 1608 StorageBus_T storageBus = StorageBus_Null; 1616 1609 1617 CHECK_ERROR 1610 CHECK_ERROR(aStorageControllers[i], COMGETTER(Bus)(&storageBus)); 1618 1611 if (storageBus == StorageBus_Floppy) 1619 1612 { … … 1627 1620 ComPtr<IMediumAttachment> floppyAttachment; 1628 1621 1629 CHECK_ERROR 1622 CHECK_ERROR(storageCtl, COMGETTER(Name)(storageCtlName.asOutParam())); 1630 1623 rc = gMachine->GetMediumAttachment(storageCtlName, 0, 0, floppyAttachment.asOutParam()); 1631 1624 if (FAILED(rc)) 1632 CHECK_ERROR 1633 1625 CHECK_ERROR(gMachine, AttachDevice(storageCtlName, 0, 0, 1626 DeviceType_Floppy, NULL)); 1634 1627 } 1635 1628 else 1636 1629 { 1637 1630 storageCtlName = "Floppy Controller"; 1638 CHECK_ERROR 1639 1640 1641 CHECK_ERROR 1642 1643 } 1644 } 1645 1646 CHECK_ERROR 1631 CHECK_ERROR(gMachine, AddStorageController(storageCtlName, 1632 StorageBus_Floppy, 1633 storageCtl.asOutParam())); 1634 CHECK_ERROR(gMachine, AttachDevice(storageCtlName, 0, 0, 1635 DeviceType_Floppy, NULL)); 1636 } 1637 } 1638 1639 CHECK_ERROR(gMachine, MountMedium(storageCtlName, 0, 0, id, FALSE /* aForce */)); 1647 1640 } 1648 1641 while (0); … … 1695 1688 ComPtr<IStorageController> storageCtl; 1696 1689 com::SafeIfaceArray<IStorageController> aStorageControllers; 1697 CHECK_ERROR 1690 CHECK_ERROR(gMachine, COMGETTER(StorageControllers)(ComSafeArrayAsOutParam(aStorageControllers))); 1698 1691 for (size_t i = 0; i < aStorageControllers.size(); ++ i) 1699 1692 { 1700 1693 StorageBus_T storageBus = StorageBus_Null; 1701 1694 1702 CHECK_ERROR 1695 CHECK_ERROR(aStorageControllers[i], COMGETTER(Bus)(&storageBus)); 1703 1696 if (storageBus == StorageBus_IDE) 1704 1697 { … … 1712 1705 ComPtr<IMediumAttachment> dvdAttachment; 1713 1706 1714 CHECK_ERROR 1707 CHECK_ERROR(storageCtl, COMGETTER(Name)(storageCtlName.asOutParam())); 1715 1708 gMachine->DetachDevice(storageCtlName, 1, 0); 1716 CHECK_ERROR 1709 CHECK_ERROR(gMachine, AttachDevice(storageCtlName, 1, 0, 1717 1710 DeviceType_DVD, NULL)); 1718 1711 } … … 1720 1713 { 1721 1714 storageCtlName = "IDE Controller"; 1722 CHECK_ERROR 1723 1724 1725 CHECK_ERROR 1726 1715 CHECK_ERROR(gMachine, AddStorageController(storageCtlName, 1716 StorageBus_IDE, 1717 storageCtl.asOutParam())); 1718 CHECK_ERROR(gMachine, AttachDevice(storageCtlName, 1, 0, 1719 DeviceType_DVD, NULL)); 1727 1720 } 1728 1721 } … … 2068 2061 struct sigaction sa; 2069 2062 sa.sa_sigaction = signal_handler_SIGUSR1; 2070 sigemptyset 2063 sigemptyset(&sa.sa_mask); 2071 2064 sa.sa_flags = SA_RESTART | SA_SIGINFO; 2072 sigaction 2065 sigaction(SIGUSR1, &sa, NULL); 2073 2066 #endif /* VBOXSDL_WITH_X11 */ 2074 2067 … … 2708 2701 case SDL_USER_EVENT_POINTER_CHANGE: 2709 2702 { 2710 PointerShapeChangeData *data = (PointerShapeChangeData *) 2703 PointerShapeChangeData *data = (PointerShapeChangeData *)event.user.data1; 2711 2704 SetPointerShape (data); 2712 2705 delete data; … … 2772 2765 BOOL completed; 2773 2766 CHECK_ERROR_BREAK(progress, COMGETTER(Completed)(&completed)); 2774 ASSERT 2767 ASSERT(completed); 2775 2768 LONG hrc; 2776 2769 CHECK_ERROR_BREAK(progress, COMGETTER(ResultCode)(&hrc)); … … 2831 2824 if (pCustomTempWMCursor) 2832 2825 { 2833 # if defined 2834 ::DestroyCursor(*(HCURSOR *) 2835 # elif defined (VBOXSDL_WITH_X11) && !defined(VBOX_WITHOUT_XCURSOR)2826 # if defined(RT_OS_WINDOWS) 2827 ::DestroyCursor(*(HCURSOR *)pCustomTempWMCursor); 2828 # elif defined(VBOXSDL_WITH_X11) && !defined(VBOX_WITHOUT_XCURSOR) 2836 2829 if (gfXCursorEnabled) 2837 XFreeCursor(gSdlInfo.info.x11.display, *(Cursor *) 2830 XFreeCursor(gSdlInfo.info.x11.display, *(Cursor *)pCustomTempWMCursor); 2838 2831 # endif /* VBOXSDL_WITH_X11 && !VBOX_WITHOUT_XCURSOR */ 2839 2832 free(pCustomTempWMCursor); … … 4020 4013 gfOffCursorActive = SDL_ShowCursor(-1); /* enabled / disabled */ 4021 4014 SDL_SetCursor(gpDefaultCursor); 4022 SDL_ShowCursor 4015 SDL_ShowCursor(SDL_ENABLE); 4023 4016 } 4024 4017 } … … 4396 4389 size_mask = (pitch * h + 3) & ~3; 4397 4390 4398 color = (const uint32_t *) 4399 4400 printf 4401 4391 color = (const uint32_t *)(image + size_mask); 4392 4393 printf("show_shape %dx%d pitch %d size mask %d\n", 4394 w, h, pitch, size_mask); 4402 4395 for (y = 0; y < h; ++y, mask += pitch, color += w) 4403 4396 { 4404 4397 for (x = 0; x < w; ++x) { 4405 4398 if (mask[x / 8] & (1 << (7 - (x % 8)))) 4406 printf 4399 printf(" "); 4407 4400 else 4408 4401 { 4409 4402 uint32_t c = color[x]; 4410 4403 if (c == bg) 4411 printf 4404 printf("Y"); 4412 4405 else 4413 printf 4414 } 4415 } 4416 printf 4406 printf("X"); 4407 } 4408 } 4409 printf("\n"); 4417 4410 } 4418 4411 } … … 4423 4416 * Must be called only from the main SDL thread. 4424 4417 */ 4425 static void SetPointerShape 4418 static void SetPointerShape(const PointerShapeChangeData *data) 4426 4419 { 4427 4420 /* … … 4461 4454 #endif 4462 4455 4463 #if defined 4456 #if defined(RT_OS_WINDOWS) 4464 4457 4465 4458 BITMAPV5HEADER bi; … … 4468 4461 HCURSOR hAlphaCursor = NULL; 4469 4462 4470 ::ZeroMemory (&bi, sizeof(BITMAPV5HEADER));4471 bi.bV5Size = sizeof 4463 ::ZeroMemory(&bi, sizeof(BITMAPV5HEADER)); 4464 bi.bV5Size = sizeof(BITMAPV5HEADER); 4472 4465 bi.bV5Width = data->width; 4473 bi.bV5Height = - (LONG)data->height;4466 bi.bV5Height = -(LONG)data->height; 4474 4467 bi.bV5Planes = 1; 4475 4468 bi.bV5BitCount = 32; … … 4484 4477 bi.bV5AlphaMask = 0; 4485 4478 4486 HDC hdc = ::GetDC 4479 HDC hdc = ::GetDC(NULL); 4487 4480 4488 4481 // create the DIB section with an alpha channel 4489 hBitmap = ::CreateDIBSection (hdc, (BITMAPINFO *)&bi, DIB_RGB_COLORS,4490 (void **) &lpBits, NULL, (DWORD)0);4491 4492 ::ReleaseDC 4482 hBitmap = ::CreateDIBSection(hdc, (BITMAPINFO *)&bi, DIB_RGB_COLORS, 4483 (void **)&lpBits, NULL, (DWORD)0); 4484 4485 ::ReleaseDC(NULL, hdc); 4493 4486 4494 4487 HBITMAP hMonoBitmap = NULL; … … 4496 4489 { 4497 4490 // create an empty mask bitmap 4498 hMonoBitmap = ::CreateBitmap 4491 hMonoBitmap = ::CreateBitmap(data->width, data->height, 1, 1, NULL); 4499 4492 } 4500 4493 else … … 4511 4504 4512 4505 /* Allocate memory for aligned AND mask. */ 4513 pu8AndMaskWordAligned = (uint8_t *)RTMemTmpAllocZ 4506 pu8AndMaskWordAligned = (uint8_t *)RTMemTmpAllocZ((cbAndMaskScan + 1) * data->height); 4514 4507 4515 4508 Assert(pu8AndMaskWordAligned); … … 4533 4526 for (i = 0; i < data->height; i++) 4534 4527 { 4535 memcpy 4528 memcpy(dst, src, cbAndMaskScan); 4536 4529 4537 4530 dst[cbAndMaskScan - 1] &= u8LastBytesPaddingMask; … … 4544 4537 4545 4538 // create the AND mask bitmap 4546 hMonoBitmap = ::CreateBitmap 4547 4539 hMonoBitmap = ::CreateBitmap(data->width, data->height, 1, 1, 4540 pu8AndMaskWordAligned? pu8AndMaskWordAligned: srcAndMaskPtr); 4548 4541 4549 4542 if (pu8AndMaskWordAligned) 4550 4543 { 4551 RTMemTmpFree 4552 } 4553 } 4554 4555 Assert 4556 Assert 4544 RTMemTmpFree(pu8AndMaskWordAligned); 4545 } 4546 } 4547 4548 Assert(hBitmap); 4549 Assert(hMonoBitmap); 4557 4550 if (hBitmap && hMonoBitmap) 4558 4551 { 4559 DWORD *dstShapePtr = (DWORD *) 4552 DWORD *dstShapePtr = (DWORD *)lpBits; 4560 4553 4561 4554 for (uint32_t y = 0; y < data->height; y ++) 4562 4555 { 4563 memcpy 4556 memcpy(dstShapePtr, srcShapePtr, srcShapePtrScan); 4564 4557 srcShapePtr += srcShapePtrScan; 4565 4558 dstShapePtr += data->width; … … 4573 4566 ii.hbmColor = hBitmap; 4574 4567 4575 hAlphaCursor = ::CreateIconIndirect 4576 Assert 4568 hAlphaCursor = ::CreateIconIndirect(&ii); 4569 Assert(hAlphaCursor); 4577 4570 if (hAlphaCursor) 4578 4571 { … … 4583 4576 4584 4577 // see SDL12/src/video/wincommon/SDL_sysmouse.c 4585 void *wm_cursor = malloc (sizeof (HCURSOR) + sizeof(uint8_t *) * 2);4586 *(HCURSOR *) 4587 4588 gpCustomCursor->wm_cursor = (WMcursor *) 4589 SDL_SetCursor 4590 SDL_ShowCursor 4578 void *wm_cursor = malloc(sizeof(HCURSOR) + sizeof(uint8_t *) * 2); 4579 *(HCURSOR *)wm_cursor = hAlphaCursor; 4580 4581 gpCustomCursor->wm_cursor = (WMcursor *)wm_cursor; 4582 SDL_SetCursor(gpCustomCursor); 4583 SDL_ShowCursor(SDL_ENABLE); 4591 4584 4592 4585 if (pCustomTempWMCursor) 4593 4586 { 4594 ::DestroyCursor (* (HCURSOR *)pCustomTempWMCursor);4595 free 4587 ::DestroyCursor(*(HCURSOR *)pCustomTempWMCursor); 4588 free(pCustomTempWMCursor); 4596 4589 } 4597 4590 … … 4601 4594 4602 4595 if (hMonoBitmap) 4603 ::DeleteObject 4596 ::DeleteObject(hMonoBitmap); 4604 4597 if (hBitmap) 4605 ::DeleteObject 4606 4607 #elif defined (VBOXSDL_WITH_X11) && !defined(VBOX_WITHOUT_XCURSOR)4598 ::DeleteObject(hBitmap); 4599 4600 #elif defined(VBOXSDL_WITH_X11) && !defined(VBOX_WITHOUT_XCURSOR) 4608 4601 4609 4602 if (gfXCursorEnabled) 4610 4603 { 4611 XcursorImage *img = XcursorImageCreate 4612 Assert 4604 XcursorImage *img = XcursorImageCreate(data->width, data->height); 4605 Assert(img); 4613 4606 if (img) 4614 4607 { … … 4620 4613 for (uint32_t y = 0; y < data->height; y ++) 4621 4614 { 4622 memcpy 4615 memcpy(dstShapePtr, srcShapePtr, srcShapePtrScan); 4623 4616 4624 4617 if (!data->alpha) … … 4654 4647 4655 4648 #ifndef VBOX_WITH_SDL13 4656 Cursor cur = XcursorImageLoadCursor 4657 Assert 4649 Cursor cur = XcursorImageLoadCursor(gSdlInfo.info.x11.display, img); 4650 Assert(cur); 4658 4651 if (cur) 4659 4652 { … … 4664 4657 4665 4658 // see SDL12/src/video/x11/SDL_x11mouse.c 4666 void *wm_cursor = malloc (sizeof(Cursor));4667 *(Cursor *) 4668 4669 gpCustomCursor->wm_cursor = (WMcursor *) 4670 SDL_SetCursor 4671 SDL_ShowCursor 4659 void *wm_cursor = malloc(sizeof(Cursor)); 4660 *(Cursor *)wm_cursor = cur; 4661 4662 gpCustomCursor->wm_cursor = (WMcursor *)wm_cursor; 4663 SDL_SetCursor(gpCustomCursor); 4664 SDL_ShowCursor(SDL_ENABLE); 4672 4665 4673 4666 if (pCustomTempWMCursor) 4674 4667 { 4675 XFreeCursor (gSdlInfo.info.x11.display, *(Cursor *)pCustomTempWMCursor);4676 free 4668 XFreeCursor(gSdlInfo.info.x11.display, *(Cursor *)pCustomTempWMCursor); 4669 free(pCustomTempWMCursor); 4677 4670 } 4678 4671 … … 4681 4674 #endif 4682 4675 } 4683 XcursorImageDestroy 4676 XcursorImageDestroy(img); 4684 4677 } 4685 4678 … … 4688 4681 if (!ok) 4689 4682 { 4690 SDL_SetCursor 4691 SDL_ShowCursor 4683 SDL_SetCursor(gpDefaultCursor); 4684 SDL_ShowCursor(SDL_ENABLE); 4692 4685 } 4693 4686 } … … 4695 4688 { 4696 4689 if (data->visible) 4697 SDL_ShowCursor 4690 SDL_ShowCursor(SDL_ENABLE); 4698 4691 else if (gfAbsoluteMouseGuest) 4699 4692 /* Don't disable the cursor if the guest additions are not active (anymore) */ 4700 SDL_ShowCursor 4693 SDL_ShowCursor(SDL_DISABLE); 4701 4694 } 4702 4695 } … … 4711 4704 // Cursor could be overwritten by the guest tools 4712 4705 SDL_SetCursor(gpDefaultCursor); 4713 SDL_ShowCursor 4706 SDL_ShowCursor(SDL_ENABLE); 4714 4707 gpOffCursor = NULL; 4715 4708 } … … 4997 4990 for (;;) 4998 4991 { 4999 int rc = SDL_PollEvent 4992 int rc = SDL_PollEvent(event); 5000 4993 if (rc == 1) 5001 4994 { -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r28019 r28205 452 452 } 453 453 454 STDMETHOD(OnSnapshotD iscarded) (IN_BSTR aMachineId, IN_BSTR aSnapshotId)454 STDMETHOD(OnSnapshotDeleted) (IN_BSTR aMachineId, IN_BSTR aSnapshotId) 455 455 { 456 456 postEvent (new VBoxSnapshotEvent (QString::fromUtf16(aMachineId), 457 457 QString::fromUtf16(aSnapshotId), 458 VBoxSnapshotEvent::D iscarded));458 VBoxSnapshotEvent::Deleted)); 459 459 return S_OK; 460 460 } -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h
r27427 r28205 103 103 public: 104 104 105 enum What { Taken, D iscarded, Changed };105 enum What { Taken, Deleted, Changed }; 106 106 107 107 VBoxSnapshotEvent (const QString &aMachineId, const QString &aSnapshotId,
Note:
See TracChangeset
for help on using the changeset viewer.