VirtualBox

Changeset 143 in vbox for trunk


Ignore:
Timestamp:
Jan 18, 2007 3:44:52 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
17594
Message:

64-bit

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

Legend:

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

    r1 r143  
    7171 * @param fResizable     flag whether the SDL window should be resizable
    7272 * @param fShowSDLConfig flag whether we print out SDL settings
    73  * @param ulFixedWith    fixed SDL width (~0 means not set)
    74  * @param ulFixedHeight  fixed SDL height (~0 means not set)
     73 * @param iFixedWidth   fixed SDL width (-1 means not set)
     74 * @param iFixedHeight  fixed SDL height (-1 means not set)
    7575 */
    7676VBoxSDLFB::VBoxSDLFB(bool fFullscreen, bool fResizable, bool fShowSDLConfig,
    77                      int ulFixedWidth, int ulFixedHeight, int ulFixedBPP)
     77                     uint32_t u32FixedWidth, uint32_t u32FixedHeight, uint32_t u32FixedBPP)
    7878{
    7979    int rc;
     
    9191    mfResizable     = fResizable;
    9292    mfShowSDLConfig = fShowSDLConfig;
    93     mFixedSDLWidth  = ulFixedWidth;
    94     mFixedSDLHeight = ulFixedHeight;
    95     mFixedSDLBPP    = ulFixedBPP;
     93    mFixedSDLWidth  = u32FixedWidth;
     94    mFixedSDLHeight = u32FixedHeight;
     95    mFixedSDLBPP    = u32FixedBPP;
    9696    mCenterXOffset  = 0;
    9797    mCenterYOffset  = 0;
     
    506506
    507507    /* are constraints set? */
    508     if (   (   (mMaxScreenWidth != ~0UL)
     508    if (   (   (mMaxScreenWidth != ~(uint32_t)0)
    509509            && (width > mMaxScreenWidth)
    510         || (   (mMaxScreenHeight != ~0UL)
     510        || (   (mMaxScreenHeight != ~(uint32_t)0)
    511511            && (height > mMaxScreenHeight))))
    512512    {
     
    677677    {
    678678        /* no restriction */
    679         mMaxScreenWidth  = ~0;
    680         mMaxScreenHeight = ~0;
     679        mMaxScreenWidth  = ~(uint32_t)0;
     680        mMaxScreenHeight = ~(uint32_t)0;
    681681    }
    682682
     
    689689
    690690    /* we either have a fixed SDL resolution or we take the guest's */
    691     if (mFixedSDLWidth != ~0U)
     691    if (mFixedSDLWidth != ~(uint32_t)0)
    692692    {
    693693        newWidth  = mFixedSDLWidth;
     
    718718     * code will try again with the original guest resolution.
    719719     */
    720     if (mFixedSDLWidth == ~0U)
     720    if (mFixedSDLWidth == ~(uint32_t)0)
    721721    {
    722722        /* if it didn't work, then we have to go for the original resolution and paint over the guest */
     
    12181218    if (!address)
    12191219        return E_INVALIDARG;
    1220     *address = (ULONG) mOverlayBits->pixels;
     1220    *address = (uintptr_t) mOverlayBits->pixels;
    12211221    return S_OK;
    12221222}
  • trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.h

    r1 r143  
    4949public:
    5050    VBoxSDLFB(bool fFullscreen = false, bool fResizable = true, bool fShowSDLConfig = false,
    51               int ulFixedWidth = ~0, int ulFixedHeight = ~0, int ulFixedBPP = ~0);
     51              uint32_t u32FixedWidth = ~(uint32_t)0, uint32_t u32FixedHeight = ~(uint32_t)0, uint32_t u32FixedBPP = ~(uint32_t)0);
    5252    virtual ~VBoxSDLFB();
    5353
  • trunk/src/VBox/Frontends/VBoxSDL/Helper.cpp

    r1 r143  
    5353DECLCALLBACK(int) xpcomEventThread(RTTHREAD thread, void *pvUser)
    5454{
    55     int eqFD = (int)pvUser;
     55    int eqFD = (intptr_t)pvUser;
    5656    unsigned cErrors = 0;
    5757    int rc;
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