VirtualBox

Changeset 34754 in vbox for trunk/src/VBox/Frontends/VBoxBFE


Ignore:
Timestamp:
Dec 6, 2010 2:40:03 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
68560
Message:

Main/VMMDev: optionally report multi-monitor mouse co-ordinates relative to the whole virtual framebuffer and not to the first screen

Location:
trunk/src/VBox/Frontends/VBoxBFE
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxBFE/DisplayImpl.cpp

    r33540 r34754  
    210210        *aBitsPerPixel = getBitsPerPixel();
    211211    return S_OK;
     212}
     213
     214void Display::getFramebufferDimensions(int32_t *px1, int32_t *py1,
     215                                       int32_t *px2, int32_t *py2)
     216{
     217    AssertPtrReturnVoid(px1);
     218    AssertPtrReturnVoid(py1);
     219    AssertPtrReturnVoid(px2);
     220    AssertPtrReturnVoid(py2);
     221    *px1 = 0;
     222    *py1 = 0;
     223    *px2 = getWidth();
     224    *py2 = getHeight();
    212225}
    213226
  • trunk/src/VBox/Frontends/VBoxBFE/DisplayImpl.h

    r28800 r34754  
    5555    STDMETHODIMP ResizeCompleted();
    5656    STDMETHODIMP GetScreenResolution(ULONG aScreenId, ULONG *aWidth, ULONG *aHeight, ULONG *aBitsPerPixel);
     57    void getFramebufferDimensions(int32_t *px1, int32_t *py1, int32_t *px2,
     58                                  int32_t *py2);
    5759
    5860    void resetFramebuffer();
Note: See TracChangeset for help on using the changeset viewer.

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