Ticket #6379: patch-no-thumbnails.diff
File patch-no-thumbnails.diff, 1.5 KB (added by , 15 years ago) |
---|
-
src/VBox/Devices/Graphics/DevVGA.cpp
old new 4973 4973 */ 4974 4974 updateDisplayAll(pThis); 4975 4975 4976 if (pThis->last_scr_width && pThis->last_scr_height) 4977 { 4976 4978 /* 4977 4979 * The display connector interface is temporarily replaced with the fake one. 4978 4980 */ … … 5038 5040 *pcy = Connector.cy; 5039 5041 } 5040 5042 } 5043 } 5044 else 5045 { 5046 rc = VINF_SUCCESS; 5047 *ppu8Data = NULL; 5048 *pcbData = 0; 5049 *pcx = 0; 5050 *pcy = 0; 5051 } 5041 5052 5042 5053 PDMCritSectLeave(&pThis->lock); 5043 5054 5044 LogFlow(("vgaPortTakeScreenshot: returns %Rrc (cbData=%d cx=%d cy=%d)\n", rc, cbRequired, Connector.cx, Connector.cy));5055 LogFlow(("vgaPortTakeScreenshot: returns %Rrc (cbData=%d cx=%d cy=%d)\n", rc, *pcbData, *pcx, *pcy)); 5045 5056 return rc; 5046 5057 } 5047 5058 -
src/VBox/Main/DisplayImpl.cpp
old new 432 432 433 433 if (RT_SUCCESS(rc)) 434 434 { 435 if (cx && cy) { 435 436 /* Prepare a small thumbnail and a PNG screenshot. */ 436 437 displayMakeThumbnail(pu8Data, cx, cy, &pu8Thumbnail, &cbThumbnail, &cxThumbnail, &cyThumbnail); 437 438 displayMakePNG(pu8Data, cx, cy, &pu8PNG, &cbPNG, &cxPNG, &cyPNG); 439 } 438 440 439 441 /* This can be called from any thread. */ 440 442 that->mpDrv->pUpPort->pfnFreeScreenshot (that->mpDrv->pUpPort, pu8Data);