Changeset 2491 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- May 4, 2007 8:52:58 AM (18 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxBFE
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxBFE/ConsoleImpl.h
r1572 r2491 119 119 virtual void mouseSendEvent(int dz) = 0; 120 120 virtual void onMousePointerShapeChange(bool fVisible, 121 bool fAlpha, uint32_t xHot,122 uint32_t yHot, uint32_t width,123 uint32_t height, void *pShape) = 0;121 bool fAlpha, uint32_t xHot, 122 uint32_t yHot, uint32_t width, 123 uint32_t height, void *pShape) = 0; 124 124 125 125 virtual CONEVENT eventWait() = 0; … … 134 134 extern Console *gConsole; 135 135 136 137 136 #endif // ____H_CONSOLEIMPL -
trunk/src/VBox/Frontends/VBoxBFE/DisplayImpl.cpp
r2106 r2491 217 217 { 218 218 *px += *pw; /* Compute xRight which is also the new width. */ 219 220 *pw = (*px < 0)? 0: *px; 221 219 *pw = (*px < 0) ? 0: *px; 222 220 *px = 0; 223 221 } … … 226 224 { 227 225 *py += *ph; /* Compute xBottom, which is also the new height. */ 228 229 *ph = (*py < 0)? 0: *py; 230 226 *ph = (*py < 0) ? 0: *py; 231 227 *py = 0; 232 228 } … … 234 230 /* Also check if coords are greater than the display resolution. */ 235 231 if (*px + *pw > cx) 236 { 237 *pw = cx > *px? cx - *px: 0; 238 } 232 *pw = cx > *px ? cx - *px: 0; 239 233 240 234 if (*py + *ph > cy) 241 { 242 *ph = cy > *py? cy - *py: 0; 243 } 235 *ph = cy > *py ? cy - *py: 0; 244 236 } 245 237 … … 274 266 275 267 mFramebuffer->NotifyUpdate(x, y, w, h, &finished); 268 mFramebuffer->Unlock(); 269 276 270 if (!finished) 277 271 { 278 272 // the Framebuffer needs more time to process 279 273 // the event so we have to halt the VM until it's done 280 mFramebuffer->Unlock();281 274 RTSemEventMultiWait(mUpdateSem, RT_INDEFINITE_WAIT); 282 } else 283 { 284 mFramebuffer->Unlock(); 285 } 286 } 287 return; 275 } 276 } 288 277 } 289 278 … … 646 635 /* Adjust region coordinates. */ 647 636 if (prgn->xLeft > phdr->x) 648 {649 637 prgn->xLeft = phdr->x; 650 }651 638 652 639 if (prgn->yTop > phdr->y) 653 {654 640 prgn->yTop = phdr->y; 655 }656 641 657 642 if (prgn->xRight < xRight) 658 {659 643 prgn->xRight = xRight; 660 }661 644 662 645 if (prgn->yBottom < yBottom) 663 {664 646 prgn->yBottom = yBottom; 665 }666 647 } 667 648 } … … 729 710 730 711 if (!VideoAccelAllowed ()) 731 {732 712 return VERR_NOT_SUPPORTED; 733 }734 713 735 714 /* … … 754 733 /* Check that current status is not being changed */ 755 734 if (mfVideoAccelEnabled == fEnable) 756 {757 735 return rc; 758 }759 736 760 737 if (mfVideoAccelEnabled) … … 784 761 785 762 if (pVMMDevPort) 786 {787 763 pVMMDevPort->pfnVBVAChange (pVMMDevPort, fEnable); 788 }789 764 790 765 if (fEnable) -
trunk/src/VBox/Frontends/VBoxBFE/SDLConsole.cpp
r965 r2491 1594 1594 } 1595 1595 1596 /* 1597 * Send ACPI power button press event 1598 */ 1599 case SDLK_h: 1600 { 1601 PPDMIBASE pBase; 1602 int vrc = PDMR3QueryDeviceLun (pVM, "acpi", 0, 0, &pBase); 1603 if (VBOX_SUCCESS (vrc)) 1604 { 1605 Assert (pBase); 1606 PPDMIACPIPORT pPort = 1607 (PPDMIACPIPORT) pBase->pfnQueryInterface(pBase, PDMINTERFACE_ACPI_PORT); 1608 vrc = pPort ? pPort->pfnPowerButtonPress(pPort) : VERR_INVALID_POINTER; 1609 } 1610 break; 1611 } 1612 1596 1613 #if 0 1597 1614 /*
Note:
See TracChangeset
for help on using the changeset viewer.