Changeset 51604 in vbox
- Timestamp:
- Jun 11, 2014 12:16:51 PM (11 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/DisplayImpl.h
r51603 r51604 293 293 bool volatile fVGAResizing; 294 294 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 303 295 VBVAMEMORY *mpVbvaMemory; 304 296 bool mfVideoAccelEnabled; -
trunk/src/VBox/Main/src-client/DisplayImpl.cpp
r51603 r51604 127 127 mpVMMDev = NULL; 128 128 mfVMMDevInited = false; 129 130 mLastAddress = NULL;131 mLastBytesPerLine = 0;132 mLastBitsPerPixel = 0,133 mLastWidth = 0;134 mLastHeight = 0;135 129 136 130 int rc = RTCritSectInit(&mVBVALock); … … 905 899 if (uScreenId == VBOX_VIDEO_PRIMARY_SCREEN) 906 900 { 907 mLastAddress = pvVRAM;908 mLastBytesPerLine = cbLine;909 mLastBitsPerPixel = bpp;910 mLastWidth = w;911 mLastHeight = h;912 mLastFlags = flags;913 914 901 DISPLAYFBINFO *pFBInfo = &maFramebuffers[uScreenId]; 915 902 pFBInfo->w = w; … … 919 906 pFBInfo->pu8FramebufferVRAM = (uint8_t *)pvVRAM; 920 907 pFBInfo->u32LineSize = cbLine; 908 pFBInfo->flags = flags; 921 909 } 922 910 … … 2195 2183 pFBInfo->w, 2196 2184 pFBInfo->h, 2197 0);2185 pFBInfo->flags); 2198 2186 } 2199 2187 } … … 2285 2273 { 2286 2274 /* 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); 2311 2281 } 2312 2282 … … 4849 4819 pThis->pDisplay->mpDrv = NULL; 4850 4820 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;4856 4821 } 4857 4822 }
Note:
See TracChangeset
for help on using the changeset viewer.