VirtualBox

Changeset 98371 in vbox


Ignore:
Timestamp:
Jan 31, 2023 6:12:13 PM (2 years ago)
Author:
vboxsync
Message:

FE/SDL: bugref:9449. Some cleanup for MacOS build. Still getting some compilation errors in objective-c files.

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

Legend:

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

    r98305 r98371  
    336336        return E_POINTER;
    337337#ifdef RT_OS_DARWIN
    338     if (mWinId == NULL) /* (In case it failed the first time.) */
     338    if (mWinId == 0) /* (In case it failed the first time.) */
    339339        mWinId = (intptr_t)VBoxSDLGetDarwinWindowId();
    340340#endif
  • trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp

    r98370 r98371  
    203203static BOOL gfGuestScrollLockPressed = FALSE;
    204204static BOOL gfACPITerm = FALSE;
    205 static BOOL gfXCursorEnabled = FALSE;
     205#if defined(VBOXSDL_WITH_X11) && !defined(VBOX_WITHOUT_XCURSOR)
     206 static BOOL gfXCursorEnabled = FALSE;
     207#endif
    206208static int  gcGuestNumLockAdaptions = 2;
    207209static int  gcGuestCapsLockAdaptions = 2;
     
    35443546        bool ok = false;
    35453547
    3546         uint32_t andMaskSize = (data->width + 7) / 8 * data->height;
    3547         uint32_t srcShapePtrScan = data->width * 4;
    3548 
    3549         const uint8_t* shape = data->shape.raw();
    3550         const uint8_t *srcAndMaskPtr = shape;
    3551         const uint8_t *srcShapePtr = shape + ((andMaskSize + 3) & ~3);
    3552 
    35533548#if 0
    35543549        /* pointer debugging code */
     
    35703565
    35713566#if defined(RT_OS_WINDOWS)
    3572 
     3567        uint32_t srcShapePtrScan = data->width * 4;
     3568        const uint8_t *srcAndMaskPtr = shape;
     3569        const uint8_t *srcShapePtr = shape + ((andMaskSize + 3) & ~3);
     3570        uint32_t andMaskSize = (data->width + 7) / 8 * data->height;
     3571        const uint8_t* shape = data->shape.raw();
    35733572        BITMAPV5HEADER bi;
    35743573        HBITMAP hBitmap;
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