VirtualBox

Ignore:
Timestamp:
Jul 25, 2014 8:00:49 PM (11 years ago)
Author:
vboxsync
Message:

Main,Frontends: TakeScreenShot API cleanup.

File:
1 edited

Legend:

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

    r52122 r52200  
    341341    if (!pixelFormat)
    342342        return E_POINTER;
    343     *pixelFormat = FramebufferPixelFormat_FOURCC_RGB;
     343    *pixelFormat = BitmapFormat_BGR;
    344344    return S_OK;
    345345}
     
    14461446    if (!pixelFormat)
    14471447        return E_INVALIDARG;
    1448     *pixelFormat = FramebufferPixelFormat_FOURCC_RGB;
     1448    *pixelFormat = BitmapFormat_BGR;
    14491449    return S_OK;
    14501450}
     
    15761576 *
    15771577 * @returns COM status code
    1578  * @param   pixelFormat Must be FramebufferPixelFormat_PixelFormatRGB32.
     1578 * @param   pixelFormat Must be BitmapFormat_BGR.
    15791579 * @param   vram        Must be NULL.
    15801580 * @param   lineSize    Ignored.
     
    15871587                                             ULONG w, ULONG h, BOOL *finished)
    15881588{
    1589     AssertReturn(pixelFormat == FramebufferPixelFormat_FOURCC_RGB, E_INVALIDARG);
     1589    AssertReturn(pixelFormat == BitmapFormat_BGR, E_INVALIDARG);
    15901590    AssertReturn(vram == 0, E_INVALIDARG);
    15911591    AssertReturn(bitsPerPixel == 32, E_INVALIDARG);
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