VirtualBox

Ignore:
Timestamp:
Jan 31, 2007 4:14:04 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
18068
Message:

Main/Frontends: Changed all interface attributes and method parameters that used to use ULONG to pass pointers around; they now use BYTE * for this purpose (should fix problems for 64-bit targets).

File:
1 edited

Legend:

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

    r143 r470  
    258258 * @param   address Pointer to result variable.
    259259 */
    260 STDMETHODIMP VBoxSDLFB::COMGETTER(Address)(ULONG *address)
     260STDMETHODIMP VBoxSDLFB::COMGETTER(Address)(BYTE **address)
    261261{
    262262    LogFlow(("VBoxSDLFB::GetAddress\n"));
     
    266266    if (mSurfVRAM)
    267267    {
    268         *address = (uintptr_t)mSurfVRAM->pixels;
     268        *address = (BYTE *) mSurfVRAM->pixels;
    269269    }
    270270    else
     
    424424 *                      continuing with display updates.
    425425 */
    426 STDMETHODIMP VBoxSDLFB::RequestResize(FramebufferPixelFormat_T pixelFormat, ULONG vram, ULONG lineSize, ULONG w, ULONG h,
    427                                       BOOL *finished)
     426STDMETHODIMP VBoxSDLFB::RequestResize(FramebufferPixelFormat_T pixelFormat, BYTE *vram,
     427                                      ULONG lineSize, ULONG w, ULONG h, BOOL *finished)
    428428{
    429429    LogFlow(("VBoxSDLFB::RequestResize: w = %d, h = %d, pixelFormat: %d, vram = %p, lineSize = %d\n",
     
    443443    mGuestYRes = h;
    444444    mPixelFormat = pixelFormat;
    445     mPtrVRAM = (void *)vram;
     445    mPtrVRAM = vram;
    446446    mLineSize = lineSize;
    447447
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