VirtualBox

Changeset 42248 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jul 20, 2012 8:39:45 AM (13 years ago)
Author:
vboxsync
Message:

API change for SetVideoModeHint to be able to disable guest screens and to set the origin of guest screens

Location:
trunk/src/VBox/Main
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r42194 r42248  
    1421414214  <interface
    1421514215    name="IDisplay" extends="$unknown"
    14216     uuid="4b75c45c-e22e-4b75-b7cd-7ce9a83bb36e"
     14216    uuid="b83ee395-8679-40ca-8d60-1a0cbe724930"
    1421714217    wsmap="managed"
    1421814218    >
     
    1427814278
    1427914279      </desc>
     14280      <param name="display" type="unsigned long" dir="in">
     14281        <desc>
     14282          The number of the guest display to send the hint to.
     14283        </desc>
     14284      </param>
     14285      <param name="enabled" type="boolean" dir="in">
     14286        <desc>
     14287          @c True, if this guest screen is enabled,
     14288          @c False otherwise.
     14289        </desc>
     14290      </param>
     14291      <param name="changeOrigin" type="boolean" dir="in">
     14292        <desc>
     14293          @c True, if the origin of the guest screen should be changed,
     14294          @c False otherwise.
     14295        </desc>
     14296      </param>
     14297      <param name="originX" type="long" dir="in">
     14298        <desc>
     14299          The X origin of the guest screen.
     14300        </desc>
     14301      </param>
     14302      <param name="originY" type="long" dir="in">
     14303        <desc>
     14304          The Y origin of the guest screen.
     14305        </desc>
     14306      </param>
    1428014307      <param name="width" type="unsigned long" dir="in"/>
    1428114308      <param name="height" type="unsigned long" dir="in"/>
    1428214309      <param name="bitsPerPixel" type="unsigned long" dir="in"/>
    14283       <param name="display" type="unsigned long" dir="in"/>
    1428414310    </method>
    1428514311
  • trunk/src/VBox/Main/include/DisplayImpl.h

    r41404 r42248  
    161161    STDMETHOD(SetFramebuffer)(ULONG aScreenId, IFramebuffer *aFramebuffer);
    162162    STDMETHOD(GetFramebuffer)(ULONG aScreenId, IFramebuffer **aFramebuffer, LONG *aXOrigin, LONG *aYOrigin);
    163     STDMETHOD(SetVideoModeHint)(ULONG width, ULONG height, ULONG bitsPerPixel, ULONG display);
     163    STDMETHOD(SetVideoModeHint)(ULONG aDisplay, BOOL aEnabled, BOOL aChangeOrigin, LONG aOriginX, LONG aOriginY, ULONG aWidth, ULONG aHeight, ULONG aBitsPerPixel);
    164164    STDMETHOD(TakeScreenShot)(ULONG aScreenId, BYTE *address, ULONG width, ULONG height);
    165165    STDMETHOD(TakeScreenShotToArray)(ULONG aScreenId, ULONG width, ULONG height, ComSafeArrayOut(BYTE, aScreenData));
  • trunk/src/VBox/Main/src-client/ConsoleVRDPServer.cpp

    r41352 r42248  
    12651265    ConsoleVRDPServer *server = static_cast<ConsoleVRDPServer*>(pvCallback);
    12661266
    1267     server->mConsole->getDisplay()->SetVideoModeHint(cWidth, cHeight, cBitsPerPixel, uScreenId);
     1267    server->mConsole->getDisplay()->SetVideoModeHint(uScreenId, TRUE /*=enabled*/,
     1268                                                     FALSE /*=changeOrigin*/, 0/*=OriginX*/, 0/*=OriginY*/,
     1269                                                     cWidth, cHeight, cBitsPerPixel);
    12681270}
    12691271
  • trunk/src/VBox/Main/src-client/DisplayImpl.cpp

    r41597 r42248  
    21272127}
    21282128
    2129 STDMETHODIMP Display::SetVideoModeHint(ULONG aWidth, ULONG aHeight,
    2130     ULONG aBitsPerPixel, ULONG aDisplay)
     2129STDMETHODIMP Display::SetVideoModeHint(ULONG aDisplay, BOOL aEnabled,
     2130                                       BOOL aChangeOrigin, LONG aOriginX, LONG aOriginY,
     2131                                       ULONG aWidth, ULONG aHeight, ULONG aBitsPerPixel)
    21312132{
    21322133    AutoCaller autoCaller(this);
     
    21362137
    21372138    CHECK_CONSOLE_DRV (mpDrv);
     2139
     2140    /* XXX Ignore these parameters for now: */
     2141    NOREF(aChangeOrigin);
     2142    NOREF(aOriginX);
     2143    NOREF(aOriginY);
     2144    NOREF(aEnabled);
    21382145
    21392146    /*
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