VirtualBox

Changeset 4866 in vbox


Ignore:
Timestamp:
Sep 17, 2007 6:38:23 PM (17 years ago)
Author:
vboxsync
Message:

VBOX_WITHOUT_XCURSOR for solaris.

File:
1 edited

Legend:

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

    r4700 r4866  
    3131
    3232#if defined (VBOXSDL_WITH_X11)
    33 #include <X11/Xlib.h>
    34 #include <X11/cursorfont.h>      /* for XC_left_ptr */
    35 #include <X11/Xcursor/Xcursor.h>
     33# include <X11/Xlib.h>
     34# include <X11/cursorfont.h>      /* for XC_left_ptr */
     35# if !defined (VBOX_WITHOUT_XCURSOR)
     36#  include <X11/Xcursor/Xcursor.h>
     37# endif
    3638#endif
    3739
     
    18311833    }
    18321834
     1835# if !defined(VBOX_WITHOUT_XCURSOR)
    18331836    /* SDL uses its own (plain) default cursor. Use the left arrow cursor instead which might look
    18341837     * much better if a mouse cursor theme is installed. */
     
    18361839    *(Cursor*)gpDefaultCursor->wm_cursor = XCreateFontCursor(gSdlInfo.info.x11.display, XC_left_ptr);
    18371840    SDL_SetCursor(gpDefaultCursor);
     1841# endif
    18381842#endif /* VBOXSDL_WITH_X11 */
    18391843
     
    25002504#endif /* VBOXSDL_WITH_X11 */
    25012505        SDL_SetCursor(gpDefaultCursor);
    2502 #ifdef VBOXSDL_WITH_X11
     2506#if defined(VBOXSDL_WITH_X11) && !defined(VBOX_WITHOUT_XCURSOR)
    25032507        XFreeCursor(gSdlInfo.info.x11.display, pDefaultTempX11Cursor);
    25042508#endif /* VBOXSDL_WITH_X11 */
     
    25142518#if defined (RT_OS_WINDOWS)
    25152519            ::DestroyCursor(*(HCURSOR *) pCustomTempWMCursor);
    2516 #elif defined (VBOXSDL_WITH_X11)
     2520#elif defined (VBOXSDL_WITH_X11) && !defined (VBOX_WITHOUT_XCURSOR)
    25172521            XFreeCursor(gSdlInfo.info.x11.display, *(Cursor *) pCustomTempWMCursor);
    25182522#endif
     
    40074011            ::DeleteObject (hBitmap);
    40084012
    4009 #elif defined (VBOXSDL_WITH_X11)
     4013#elif defined (VBOXSDL_WITH_X11) && !defined (VBOX_WITHOUT_XCURSOR)
    40104014
    40114015        XcursorImage *img = XcursorImageCreate (data->width, data->height);
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