VirtualBox

Changeset 51604 in vbox


Ignore:
Timestamp:
Jun 11, 2014 12:16:51 PM (11 years ago)
Author:
vboxsync
Message:

DisplayImpl: removed obsolete mLast* fields.

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/DisplayImpl.h

    r51603 r51604  
    293293    bool volatile fVGAResizing;
    294294
    295     /* arguments of the last handleDisplayResize() call */
    296     void       *mLastAddress;
    297     uint32_t    mLastBytesPerLine;
    298     uint32_t    mLastBitsPerPixel;
    299     uint32_t    mLastWidth;
    300     uint32_t    mLastHeight;
    301     uint16_t    mLastFlags;
    302 
    303295    VBVAMEMORY *mpVbvaMemory;
    304296    bool        mfVideoAccelEnabled;
  • trunk/src/VBox/Main/src-client/DisplayImpl.cpp

    r51603 r51604  
    127127    mpVMMDev = NULL;
    128128    mfVMMDevInited = false;
    129 
    130     mLastAddress = NULL;
    131     mLastBytesPerLine = 0;
    132     mLastBitsPerPixel = 0,
    133     mLastWidth = 0;
    134     mLastHeight = 0;
    135129
    136130    int rc = RTCritSectInit(&mVBVALock);
     
    905899    if (uScreenId == VBOX_VIDEO_PRIMARY_SCREEN)
    906900    {
    907         mLastAddress = pvVRAM;
    908         mLastBytesPerLine = cbLine;
    909         mLastBitsPerPixel = bpp;
    910         mLastWidth = w;
    911         mLastHeight = h;
    912         mLastFlags = flags;
    913 
    914901        DISPLAYFBINFO *pFBInfo = &maFramebuffers[uScreenId];
    915902        pFBInfo->w = w;
     
    919906        pFBInfo->pu8FramebufferVRAM = (uint8_t *)pvVRAM;
    920907        pFBInfo->u32LineSize = cbLine;
     908        pFBInfo->flags = flags;
    921909    }
    922910
     
    21952183                                pFBInfo->w,
    21962184                                pFBInfo->h,
    2197                                 0);
     2185                                pFBInfo->flags);
    21982186        }
    21992187    }
     
    22852273    {
    22862274        /* Setup the new framebuffer. */
    2287 
    2288         /* @todo generic code for all monitors. */
    2289         if (pFBInfo->fVBVAEnabled && pFBInfo->pu8FramebufferVRAM)
    2290         {
    2291             /* This display in VBVA mode. Resize it to the last guest resolution,
    2292              * if it has been reported.
    2293              */
    2294             handleDisplayResize(aScreenId, pFBInfo->u16BitsPerPixel,
    2295                                 pFBInfo->pu8FramebufferVRAM,
    2296                                 pFBInfo->u32LineSize,
    2297                                 pFBInfo->w,
    2298                                 pFBInfo->h,
    2299                                 pFBInfo->flags);
    2300         }
    2301         else if (aScreenId == VBOX_VIDEO_PRIMARY_SCREEN)
    2302         {
    2303             /* VGA device mode, only for the primary screen. */
    2304             handleDisplayResize(VBOX_VIDEO_PRIMARY_SCREEN, mLastBitsPerPixel,
    2305                                 mLastAddress,
    2306                                 mLastBytesPerLine,
    2307                                 mLastWidth,
    2308                                 mLastHeight,
    2309                                 mLastFlags);
    2310         }
     2275        handleDisplayResize(aScreenId, pFBInfo->u16BitsPerPixel,
     2276                            pFBInfo->pu8FramebufferVRAM,
     2277                            pFBInfo->u32LineSize,
     2278                            pFBInfo->w,
     2279                            pFBInfo->h,
     2280                            pFBInfo->flags);
    23112281    }
    23122282
     
    48494819        pThis->pDisplay->mpDrv = NULL;
    48504820        pThis->pDisplay->mpVMMDev = NULL;
    4851         pThis->pDisplay->mLastAddress = NULL;
    4852         pThis->pDisplay->mLastBytesPerLine = 0;
    4853         pThis->pDisplay->mLastBitsPerPixel = 0,
    4854         pThis->pDisplay->mLastWidth = 0;
    4855         pThis->pDisplay->mLastHeight = 0;
    48564821    }
    48574822}
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