VirtualBox

Changeset 3155 in vbox for trunk/src/VBox/Main/MouseImpl.cpp


Ignore:
Timestamp:
Jun 19, 2007 11:25:14 AM (17 years ago)
Author:
vboxsync
Message:

Allow the VM to start with NULL framebuffer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/MouseImpl.cpp

    r2981 r3155  
    274274    ComAssertComRCRet (rc, rc);
    275275
    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;
    278278
    279279    /*
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette