Lines Matching +full:5 +full:- +full:inch

30 #include <dix-config.h>
48 * in, and puts it into pScreen->devPrivate. miCreateScreenResources
55 /* per-screen private data */
64 #define miGetScreenPriv(s) ((miScreenPtr)(dixLookupPrivate(&(s)->devPrivates, miScreenPrivKey)))
71 /* this plugs into pScreen->ModifyPixmapHeader */
85 pPixmap->drawable.depth = depth; in miModifyPixmapHeader()
86 pPixmap->drawable.bitsPerPixel = bitsPerPixel; in miModifyPixmapHeader()
87 pPixmap->drawable.id = 0; in miModifyPixmapHeader()
88 pPixmap->drawable.x = 0; in miModifyPixmapHeader()
89 pPixmap->drawable.y = 0; in miModifyPixmapHeader()
90 pPixmap->drawable.width = width; in miModifyPixmapHeader()
91 pPixmap->drawable.height = height; in miModifyPixmapHeader()
92 pPixmap->devKind = devKind; in miModifyPixmapHeader()
93 pPixmap->refcnt = 1; in miModifyPixmapHeader()
94 pPixmap->devPrivate.ptr = pPixData; in miModifyPixmapHeader()
102 pPixmap->drawable.width = width; in miModifyPixmapHeader()
105 pPixmap->drawable.height = height; in miModifyPixmapHeader()
108 pPixmap->drawable.depth = depth; in miModifyPixmapHeader()
111 pPixmap->drawable.bitsPerPixel = bitsPerPixel; in miModifyPixmapHeader()
113 pPixmap->drawable.bitsPerPixel = BitsPerPixel(depth); in miModifyPixmapHeader()
116 * CAVEAT: Non-SI DDXen may use devKind and devPrivate fields for in miModifyPixmapHeader()
120 pPixmap->devKind = devKind; in miModifyPixmapHeader()
122 pPixmap->devKind = PixmapBytePad(pPixmap->drawable.width, in miModifyPixmapHeader()
123 pPixmap->drawable.depth); in miModifyPixmapHeader()
126 pPixmap->devPrivate.ptr = pPixData; in miModifyPixmapHeader()
128 pPixmap->drawable.serialNumber = NEXT_SERIAL_NUMBER; in miModifyPixmapHeader()
137 if (pScreen->devPrivate) { in miCloseScreen()
138 ((*pScreen->DestroyPixmap) ((PixmapPtr) pScreen->devPrivate)); in miCloseScreen()
139 pScreen->devPrivate = NULL; in miCloseScreen()
142 pScreen->CloseScreen = pScreenPriv->CloseScreen; in miCloseScreen()
146 if (pScreen->CloseScreen) in miCloseScreen()
147 return (*pScreen->CloseScreen) (pScreen); in miCloseScreen()
161 * that time. pScreen->CreateScreenResources is called after all
162 * possible private-requesting modules have been inited; we create the
171 pScrInitParms = (miScreenInitParmsPtr) pScreen->devPrivate; in miCreateScreenResources()
173 /* if width is non-zero, pScreen->devPrivate will be a pixmap in miCreateScreenResources()
176 if (pScrInitParms->width) { in miCreateScreenResources()
183 (*pScreen->CreatePixmap) (pScreen, 0, 0, pScreen->rootDepth, 0); in miCreateScreenResources()
187 if (!(*pScreen->ModifyPixmapHeader) (pPixmap, pScreen->width, in miCreateScreenResources()
188 pScreen->height, in miCreateScreenResources()
189 pScreen->rootDepth, in miCreateScreenResources()
190 BitsPerPixel(pScreen->rootDepth), in miCreateScreenResources()
191 PixmapBytePad(pScrInitParms->width, in miCreateScreenResources()
192 pScreen->rootDepth), in miCreateScreenResources()
193 pScrInitParms->pbits)) in miCreateScreenResources()
198 value = pScrInitParms->pbits; in miCreateScreenResources()
200 free(pScreen->devPrivate); /* freeing miScreenInitParmsRec */ in miCreateScreenResources()
201 pScreen->devPrivate = value; /* pPixmap or pbits */ in miCreateScreenResources()
210 /* Stash pbits and width in a short-lived miScreenInitParmsRec attached in miScreenDevPrivateInit()
217 pScrInitParms->pbits = pbits; in miScreenDevPrivateInit()
218 pScrInitParms->width = width; in miScreenDevPrivateInit()
219 pScreen->devPrivate = (void *) pScrInitParms; in miScreenDevPrivateInit()
226 return (PixmapPtr) (pScreen->devPrivate); in miGetScreenPixmap()
233 pPix->drawable.pScreen->devPrivate = (void *) pPix; in miSetScreenPixmap()
239 int dpix, int dpiy, /* dots per inch */ in miScreenInit()
258 dixSetPrivate(&pScreen->devPrivates, miScreenPrivKey, pScreenPriv); in miScreenInit()
260 pScreen->width = xsize; in miScreenInit()
261 pScreen->height = ysize; in miScreenInit()
262 pScreen->mmWidth = (xsize * 254 + dpix * 5) / (dpix * 10); in miScreenInit()
263 pScreen->mmHeight = (ysize * 254 + dpiy * 5) / (dpiy * 10); in miScreenInit()
264 pScreen->numDepths = numDepths; in miScreenInit()
265 pScreen->rootDepth = rootDepth; in miScreenInit()
266 pScreen->allowedDepths = depths; in miScreenInit()
267 pScreen->rootVisual = rootVisual; in miScreenInit()
269 pScreen->minInstalledCmaps = 1; in miScreenInit()
270 pScreen->maxInstalledCmaps = 1; in miScreenInit()
271 pScreen->backingStoreSupport = NotUseful; in miScreenInit()
272 pScreen->saveUnderSupport = NotUseful; in miScreenInit()
274 pScreen->ModifyPixmapHeader = miModifyPixmapHeader; in miScreenInit()
275 pScreen->CreateScreenResources = miCreateScreenResources; in miScreenInit()
276 pScreen->GetScreenPixmap = miGetScreenPixmap; in miScreenInit()
277 pScreen->SetScreenPixmap = miSetScreenPixmap; in miScreenInit()
278 pScreen->numVisuals = numVisuals; in miScreenInit()
279 pScreen->visuals = visuals; in miScreenInit()
284 pScreenPriv->CloseScreen = pScreen->CloseScreen; in miScreenInit()
285 pScreen->CloseScreen = miCloseScreen; in miScreenInit()
289 pScreen->SourceValidate = miSourceValidate; in miScreenInit()
292 pScreen->ValidateTree = miValidateTree; in miScreenInit()
293 pScreen->PostValidateTree = (PostValidateTreeProcPtr) 0; in miScreenInit()
294 pScreen->WindowExposures = miWindowExposures; in miScreenInit()
296 pScreen->ClearToBackground = miClearToBackground; in miScreenInit()
297 pScreen->ClipNotify = (ClipNotifyProcPtr) 0; in miScreenInit()
298 pScreen->RestackWindow = (RestackWindowProcPtr) 0; in miScreenInit()
299 pScreen->PaintWindow = miPaintWindow; in miScreenInit()
306 pScreen->BlockHandler = (ScreenBlockHandlerProcPtr) NoopDDA; in miScreenInit()
307 pScreen->WakeupHandler = (ScreenWakeupHandlerProcPtr) NoopDDA; in miScreenInit()
308 pScreen->MarkWindow = miMarkWindow; in miScreenInit()
309 pScreen->MarkOverlappedWindows = miMarkOverlappedWindows; in miScreenInit()
310 pScreen->MoveWindow = miMoveWindow; in miScreenInit()
311 pScreen->ResizeWindow = miResizeWindow; in miScreenInit()
312 pScreen->GetLayerWindow = miGetLayerWindow; in miScreenInit()
313 pScreen->HandleExposures = miHandleValidateExposures; in miScreenInit()
314 pScreen->ReparentWindow = (ReparentWindowProcPtr) 0; in miScreenInit()
315 pScreen->ChangeBorderWidth = miChangeBorderWidth; in miScreenInit()
316 pScreen->SetShape = miSetShape; in miScreenInit()
317 pScreen->MarkUnrealizedWindow = miMarkUnrealizedWindow; in miScreenInit()
318 pScreen->XYToWindow = miXYToWindow; in miScreenInit()
333 dixSetPrivate(&pScreen->devPrivates, miZeroLineScreenKey, in miSetZeroLineBias()