Lines Matching refs:pMode

136 static Bool VBOXSwitchMode(ScrnInfoPtr pScrn, DisplayModePtr pMode);
315 static void setModeRandR11(ScrnInfoPtr pScrn, DisplayModePtr pMode, bool fLimitedContext)
318 struct vbvxFrameBuffer frameBuffer = { 0, 0, pMode->HDisplay, pMode->VDisplay, pScrn->bitsPerPixel};
320 pVBox->pScreens[0].aScreenLocation.cx = pMode->HDisplay;
321 pVBox->pScreens[0].aScreenLocation.cy = pMode->VDisplay;
324 pScrn->displayWidth = pScrn->virtualX = pMode->HDisplay;
325 pScrn->virtualY = pMode->VDisplay;
328 adjustScreenPixmap(pScrn, pMode->HDisplay, pMode->VDisplay);
329 if (pMode->HDisplay != 0 && pMode->VDisplay != 0)
330 vbvxSetMode(pScrn, 0, pMode->HDisplay, pMode->VDisplay, 0, 0, true, true, &frameBuffer);
331 pScrn->currentMode = pMode;
536 DisplayModePtr pMode = xnfcalloc(1, sizeof(DisplayModeRec));
539 pMode->status = MODE_OK;
542 pMode->type = isUserDef ? M_T_USERDEF : M_T_BUILTIN;
544 pMode->type |= M_T_PREFERRED;
548 pMode->HDisplay = x;
550 pMode->HDisplay = x & ~7;
551 pMode->HSyncStart = pMode->HDisplay + 2;
552 pMode->HSyncEnd = pMode->HDisplay + 4;
553 pMode->HTotal = pMode->HDisplay + 6;
554 pMode->VDisplay = y;
555 pMode->VSyncStart = pMode->VDisplay + 2;
556 pMode->VSyncEnd = pMode->VDisplay + 4;
557 pMode->VTotal = pMode->VDisplay + 6;
558 pMode->Clock = pMode->HTotal * pMode->VTotal * cRefresh / 1000; /* kHz */
560 xf86SetModeDefaultName(pMode);
562 pMode->name = xnfstrdup(pszName);
564 *pModes = xf86ModesAdd(*pModes, pMode);
565 return pMode;
572 DisplayModePtr pModes = NULL, pMode;
580 pMode = vbox_output_add_mode(pVBox, &pModes, NULL, pVBox->pScreens[iScreen].aPreferredSize.cx,
695 static Bool VBOXSwitchModeIndex(int scrnIndex, DisplayModePtr pMode, int flags)
696 { (void) flags; return VBOXSwitchMode(xf86Screens[scrnIndex], pMode); }
1500 static Bool VBOXSwitchMode(ScrnInfoPtr pScrn, DisplayModePtr pMode)
1505 TRACE_LOG("HDisplay=%d, VDisplay=%d\n", pMode->HDisplay, pMode->VDisplay);
1509 pVBox->FBSize.cx = pMode->HDisplay;
1510 pVBox->FBSize.cy = pMode->VDisplay;
1511 pVBox->pScreens[0].aScreenLocation.cx = pMode->HDisplay;
1512 pVBox->pScreens[0].aScreenLocation.cy = pMode->VDisplay;
1523 rc = xf86SetSingleMode(pScrn, pMode, RR_Rotate_0);
1525 VBOXAdjustScreenPixmap(pScrn, pMode->HDisplay, pMode->VDisplay);
1526 rc = VBOXSetMode(pScrn, 0, pMode->HDisplay, pMode->VDisplay,