Lines Matching defs:winRec
140 RootlessWindowRec *winRec;
146 winRec = WINREC(top);
147 if (winRec == NULL) {
151 return (unsigned long)(uintptr_t)winRec->wid;
165 RootlessWindowRec *winRec;
172 winRec = WINREC(top);
173 if (winRec == NULL) {
174 RL_DEBUG_MSG("RootlessStartDrawing is a no-op because winRec == NULL.\n");
179 if (!winRec->is_drawing) {
182 SCREENREC(pScreen)->imp->StartDrawing(winRec->wid, &winRec->pixelData,
183 &winRec->bytesPerRow);
185 winRec->pixmap =
186 GetScratchPixmapHeader(pScreen, winRec->width, winRec->height,
189 winRec->bytesPerRow, winRec->pixelData);
192 winRec->pixmap, winRec->pixmap->devPrivate.ptr, winRec->pixmap->drawable.x,
193 winRec->pixmap->drawable.y, winRec->pixmap->drawable.width, winRec->pixmap->drawable.height,
194 winRec->pixmap->drawable.bitsPerPixel, RootlessWID(pWindow));
196 SetPixmapBaseToScreen(winRec->pixmap,
200 top->drawable.x, top->drawable.y, bw, winRec->pixmap->devPrivate.ptr, winRec->pixmap->drawable.x,
201 winRec->pixmap->drawable.y, winRec->pixmap->drawable.width, winRec->pixmap->drawable.height,
202 winRec->pixmap->drawable.bitsPerPixel, RootlessWID(pWindow));
204 winRec->is_drawing = TRUE;
206 RL_DEBUG_MSG("Skipped call to xprStartDrawing (wid: %lu) because winRec->is_drawing says we already did.\n", RootlessWID(pWindow));
210 if (curPixmap == winRec->pixmap) {
211 RL_DEBUG_MSG("Window %p already has winRec->pixmap %p; not pushing\n",
212 pWindow, winRec->pixmap);
233 pScreen->SetWindowPixmap(pWindow, winRec->pixmap);
245 RootlessWindowRec *winRec = (RootlessWindowRec *) data;
252 if (exPixmap == winRec->pixmap)
254 ("Window %p appears to be in drawing mode (ex-pixmap %p equals winRec->pixmap, which is being freed) but has no oldPixmap!\n",
258 if (exPixmap != winRec->pixmap)
260 ("Window %p appears to be in drawing mode (oldPixmap %p) but ex-pixmap %p not winRec->pixmap %p!\n",
261 pWindow, oldPixmap, exPixmap, winRec->pixmap);
262 if (oldPixmap == winRec->pixmap)
264 ("Window %p's oldPixmap %p is winRec->pixmap, which has just been freed!\n",
278 RootlessWindowRec *winRec;
282 winRec = WINREC(top);
283 if (winRec == NULL)
286 if (winRec->is_drawing) {
287 SCREENREC(pScreen)->imp->StopDrawing(winRec->wid, flush);
289 FreeScratchPixmapHeader(winRec->pixmap);
290 TraverseTree(top, RestorePreDrawingPixmapVisitor, (void *) winRec);
291 winRec->pixmap = NULL;
293 winRec->is_drawing = FALSE;
296 SCREENREC(pScreen)->imp->UpdateRegion(winRec->wid, NULL);
299 if (flush && winRec->is_reorder_pending) {
300 winRec->is_reorder_pending = FALSE;
313 RootlessWindowRec *winRec;
324 winRec = WINREC(pTop);
325 if (winRec == NULL)
352 SCREENREC(pWindow->drawable.pScreen)->imp->DamageRects(winRec->
358 -winRec->
360 -winRec->
378 SCREENREC(pWindow->drawable.pScreen)->imp->DamageRects(winRec->wid,
383 -winRec->x,
384 -winRec->y);