VirtualBox

Changeset 44491 in vbox for trunk


Ignore:
Timestamp:
Jan 31, 2013 1:46:37 PM (12 years ago)
Author:
vboxsync
Message:

Additions/X11: fix screen resize for X.org < 1.13

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/vboxvideo/setmode.c

    r43270 r44491  
    144144    VBOXPtr pVBox = VBOXGetRec(pScrn);
    145145    uint64_t cbLine = vboxLineLength(pScrn, width);
     146    int displayWidth = vboxDisplayPitch(pScrn, cbLine);
    146147
    147148    TRACE_LOG("width=%d, height=%d\n", width, height);
    148     if (width == pScrn->virtualX && height == pScrn->virtualY)
     149    if (   width == pScrn->virtualX
     150        && height == pScrn->virtualY
     151        && displayWidth == pScrn->displayWidth)
    149152        return TRUE;
    150153    if (!pPixmap) {
     
    166169    pScrn->virtualX = width;
    167170    pScrn->virtualY = height;
    168     pScrn->displayWidth = vboxDisplayPitch(pScrn, cbLine);
     171    pScrn->displayWidth = displayWidth;
    169172    pVBox->cbLine = cbLine;
    170173#ifdef VBOX_DRI
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