VirtualBox

Changeset 3571 in vbox for trunk/src/VBox/Frontends/VBoxSDL


Ignore:
Timestamp:
Jul 12, 2007 8:03:18 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
22814
Message:

Added framebuffer property RenderMode.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.cpp

    r3569 r3571  
    200200    }
    201201
     202    /* Default framebuffer render mode is normal (draw the entire framebuffer) */
     203    mRenderMode = RenderModeNormal;
     204
    202205    resizeGuest();
    203206    Assert(mScreen);
     
    366369    /* Not yet implemented */
    367370    *aOverlay = 0;
     371    return S_OK;
     372}
     373
     374/**
     375 * Return the current framebuffer render mode
     376 *
     377 * @returns COM status code
     378 * @param   renderMode  framebuffer render mode
     379 */
     380STDMETHODIMP VBoxSDLFB::COMGETTER(RenderMode) (FramebufferRenderMode_T *renderMode)
     381{
     382    if (!renderMode)
     383        return E_POINTER;
     384    *renderMode = mRenderMode;
     385    return S_OK;
     386}
     387
     388/**
     389 * Change the current framebuffer render mode
     390 *
     391 * @returns COM status code
     392 * @param   renderMode  framebuffer render mode
     393 */
     394STDMETHODIMP VBoxSDLFB::COMSETTER(RenderMode) (FramebufferRenderMode_T renderMode)
     395{
     396    if (!renderMode)
     397        return E_POINTER;
     398    mRenderMode = renderMode;
    368399    return S_OK;
    369400}
  • trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.h

    r3569 r3571  
    9595    STDMETHOD(COMGETTER(HeightReduction)) (ULONG *heightReduction);
    9696    STDMETHOD(COMGETTER(Overlay)) (IFramebufferOverlay **aOverlay);
     97    STDMETHOD(COMGETTER(RenderMode)) (FramebufferRenderMode_T *renderMode);
     98    STDMETHOD(COMSETTER(RenderMode)) (FramebufferRenderMode_T  renderMode);
    9799
    98100    STDMETHOD(NotifyUpdate)(ULONG x, ULONG y,
     
    188190    FramebufferPixelFormat_T mPixelFormat;
    189191
     192    /* Framebuffer render mode */
     193    FramebufferRenderMode_T mRenderMode;
     194
    190195    /** the application Icon */
    191196    SDL_Surface *mWMIcon;
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