VirtualBox

Changeset 3761 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Jul 22, 2007 10:43:14 AM (18 years ago)
Author:
vboxsync
Message:

Main/Frontends: Cleaned up IFramebuffer interface.

Location:
trunk/src/VBox/Main/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/DisplayImpl.h

    r3576 r3761  
    166166    STDMETHOD(COMGETTER(Width)) (ULONG *width);
    167167    STDMETHOD(COMGETTER(Height)) (ULONG *height);
    168     STDMETHOD(COMGETTER(ColorDepth)) (ULONG *colorDepth);
     168    STDMETHOD(COMGETTER(BitsPerPixel)) (ULONG *bitsPerPixel);
    169169
    170170    // IDisplay methods
     
    175175    STDMETHOD(SetFramebuffer)(ULONG aScreenId, IFramebuffer *aFramebuffer);
    176176    STDMETHOD(GetFramebuffer)(ULONG aScreenId, IFramebuffer **aFramebuffer, LONG *aXOrigin, LONG *aYOrigin);
    177     STDMETHOD(SetVideoModeHint)(ULONG width, ULONG height, ULONG colorDepth, ULONG display);
     177    STDMETHOD(SetVideoModeHint)(ULONG width, ULONG height, ULONG bitsPerPixel, ULONG display);
    178178    STDMETHOD(TakeScreenShot)(BYTE *address, ULONG width, ULONG height);
    179179    STDMETHOD(DrawToScreen)(BYTE *address, ULONG x, ULONG y, ULONG width, ULONG height);
     
    226226    /* arguments of the last handleDisplayResize() call */
    227227    void *mLastAddress;
    228     uint32_t mLastLineSize;
    229     uint32_t mLastColorDepth;
     228    uint32_t mLastBytesPerLine;
     229    uint32_t mLastBitsPerPixel;
    230230    int mLastWidth;
    231231    int mLastHeight;
  • trunk/src/VBox/Main/include/FramebufferImpl.h

    r3578 r3761  
    5151    STDMETHOD(COMGETTER(Width)) (ULONG *width);
    5252    STDMETHOD(COMGETTER(Height)) (ULONG *height);
    53     STDMETHOD(COMGETTER(ColorDepth)) (ULONG *colorDepth);
    54     STDMETHOD(COMGETTER(LineSize)) (ULONG *lineSize);
    55     STDMETHOD(COMGETTER(PixelFormat)) (FramebufferPixelFormat_T *pixelFormat);
     53    STDMETHOD(COMGETTER(BitsPerPixel)) (ULONG *bitsPerPixel);
     54    STDMETHOD(COMGETTER(BytesPerLine)) (ULONG *bytesPerLine);
     55    STDMETHOD(COMGETTER(PixelFormat)) (ULONG *pixelFormat);
     56    STDMETHOD(COMGETTER(UsesGuestVRAM)) (BOOL *usesGuestVRAM);
    5657    STDMETHOD(COMGETTER(HeightReduction)) (ULONG *heightReduction);
    5758    STDMETHOD(COMGETTER(Overlay)) (IFramebufferOverlay **aOverlay);
     
    6364                            ULONG w, ULONG h,
    6465                            BOOL *finished);
    65     STDMETHOD(RequestResize)(ULONG uScreenId, FramebufferPixelFormat_T pixelFormat, BYTE *vram,
    66                              ULONG lineSize, ULONG w, ULONG h,
     66    STDMETHOD(RequestResize)(ULONG uScreenId, ULONG pixelFormat, BYTE *vram,
     67                             ULONG bpp, ULONG bpl, ULONG w, ULONG h,
    6768                             BOOL *finished);
    6869    STDMETHOD(OperationSupported)(FramebufferAccelerationOperation_T operation,
     
    8081    int mWidth;
    8182    int mHeight;
    82     int mDepth;
    83     int mLineSize;
     83    int mBitsPerPixel;
     84    int mBytesPerLine;
    8485    uint8_t *mData;
    8586    RTSEMMUTEX mMutex;
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