VirtualBox

Ticket #6379: patch-no-thumbnails.diff

File patch-no-thumbnails.diff, 1.5 KB (added by Bernhard Fröhlich, 15 years ago)

Patch to not generate a thumbnail. Author: Alexander Zagrebin <alexz AT visp.ru>

  • src/VBox/Devices/Graphics/DevVGA.cpp

    old new  
    49734973     */
    49744974    updateDisplayAll(pThis);
    49754975
     4976    if (pThis->last_scr_width && pThis->last_scr_height)
     4977    {
    49764978    /*
    49774979     * The display connector interface is temporarily replaced with the fake one.
    49784980     */
     
    50385040            *pcy = Connector.cy;
    50395041        }
    50405042    }
     5043    }
     5044    else
     5045    {
     5046        rc = VINF_SUCCESS;
     5047        *ppu8Data = NULL;
     5048        *pcbData = 0;
     5049        *pcx = 0;
     5050        *pcy = 0;
     5051    }
    50415052
    50425053    PDMCritSectLeave(&pThis->lock);
    50435054
    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));
    50455056    return rc;
    50465057}
    50475058
  • src/VBox/Main/DisplayImpl.cpp

    old new  
    432432
    433433        if (RT_SUCCESS(rc))
    434434        {
     435            if (cx && cy) {
    435436            /* Prepare a small thumbnail and a PNG screenshot. */
    436437            displayMakeThumbnail(pu8Data, cx, cy, &pu8Thumbnail, &cbThumbnail, &cxThumbnail, &cyThumbnail);
    437438            displayMakePNG(pu8Data, cx, cy, &pu8PNG, &cbPNG, &cxPNG, &cyPNG);
     439            }
    438440
    439441            /* This can be called from any thread. */
    440442            that->mpDrv->pUpPort->pfnFreeScreenshot (that->mpDrv->pUpPort, pu8Data);

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette