VirtualBox

Ignore:
Timestamp:
Mar 18, 2015 11:43:37 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
99030
Message:

Main,Frontends: use BitmapFormat in API.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.cpp

    r54805 r54828  
    181181    STDMETHOD(COMGETTER(BitsPerPixel))(ULONG *puBitsPerPixel);
    182182    STDMETHOD(COMGETTER(BytesPerLine))(ULONG *puBytesPerLine);
    183     STDMETHOD(COMGETTER(PixelFormat))(ULONG *puPixelFormat);
     183    STDMETHOD(COMGETTER(PixelFormat))(BitmapFormat_T *puPixelFormat);
    184184    STDMETHOD(COMGETTER(HeightReduction))(ULONG *puHeightReduction);
    185185    STDMETHOD(COMGETTER(Overlay))(IFramebufferOverlay **ppOverlay);
     
    658658}
    659659
    660 STDMETHODIMP UIFrameBufferPrivate::COMGETTER(PixelFormat)(ULONG *puPixelFormat)
     660STDMETHODIMP UIFrameBufferPrivate::COMGETTER(PixelFormat)(BitmapFormat_T *puPixelFormat)
    661661{
    662662    if (!puPixelFormat)
    663663        return E_POINTER;
    664     *puPixelFormat = pixelFormat();
     664    *puPixelFormat = (BitmapFormat_T)pixelFormat();
    665665    return S_OK;
    666666}
     
    11811181        ULONG ulBitsPerPixel = 0;
    11821182        ULONG ulBytesPerLine = 0;
    1183         ULONG ulPixelFormat = 0;
     1183        KBitmapFormat bitmapFormat = KBitmapFormat_Opaque;
    11841184        m_sourceBitmap.QueryBitmapInfo(pAddress,
    11851185                                       ulWidth,
     
    11871187                                       ulBitsPerPixel,
    11881188                                       ulBytesPerLine,
    1189                                        ulPixelFormat);
     1189                                       bitmapFormat);
    11901190        Assert(ulBitsPerPixel == 32);
    11911191
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