- Timestamp:
- Jan 31, 2013 1:46:37 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/vboxvideo/setmode.c
r43270 r44491 144 144 VBOXPtr pVBox = VBOXGetRec(pScrn); 145 145 uint64_t cbLine = vboxLineLength(pScrn, width); 146 int displayWidth = vboxDisplayPitch(pScrn, cbLine); 146 147 147 148 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) 149 152 return TRUE; 150 153 if (!pPixmap) { … … 166 169 pScrn->virtualX = width; 167 170 pScrn->virtualY = height; 168 pScrn->displayWidth = vboxDisplayPitch(pScrn, cbLine);171 pScrn->displayWidth = displayWidth; 169 172 pVBox->cbLine = cbLine; 170 173 #ifdef VBOX_DRI
Note:
See TracChangeset
for help on using the changeset viewer.