Lines Matching refs:screen

93 ephyrScreenInitialize(KdScreenInfo *screen)  in ephyrScreenInitialize()  argument
95 EphyrScrPriv *scrpriv = screen->driver; in ephyrScreenInitialize()
100 if (hostx_want_screen_geometry(screen, &width, &height, &x, &y) in ephyrScreenInitialize()
101 || !screen->width || !screen->height) { in ephyrScreenInitialize()
102 screen->width = width; in ephyrScreenInitialize()
103 screen->height = height; in ephyrScreenInitialize()
104 screen->x = x; in ephyrScreenInitialize()
105 screen->y = y; in ephyrScreenInitialize()
109 screen->fb.depth = 8; in ephyrScreenInitialize()
111 if (screen->fb.depth && screen->fb.depth != hostx_get_depth()) { in ephyrScreenInitialize()
112 if (screen->fb.depth < hostx_get_depth() in ephyrScreenInitialize()
113 && (screen->fb.depth == 24 || screen->fb.depth == 16 in ephyrScreenInitialize()
114 || screen->fb.depth == 8)) { in ephyrScreenInitialize()
115 scrpriv->server_depth = screen->fb.depth; in ephyrScreenInitialize()
122 screen->fb.depth = hostx_get_server_depth(screen); in ephyrScreenInitialize()
123 screen->rate = 72; in ephyrScreenInitialize()
125 if (screen->fb.depth <= 8) { in ephyrScreenInitialize()
127 screen->fb.visuals = ((1 << StaticGray) | (1 << GrayScale)); in ephyrScreenInitialize()
129 screen->fb.visuals = ((1 << StaticGray) | in ephyrScreenInitialize()
135 screen->fb.redMask = 0x00; in ephyrScreenInitialize()
136 screen->fb.greenMask = 0x00; in ephyrScreenInitialize()
137 screen->fb.blueMask = 0x00; in ephyrScreenInitialize()
138 screen->fb.depth = 8; in ephyrScreenInitialize()
139 screen->fb.bitsPerPixel = 8; in ephyrScreenInitialize()
142 screen->fb.visuals = (1 << TrueColor); in ephyrScreenInitialize()
144 if (screen->fb.depth <= 15) { in ephyrScreenInitialize()
145 screen->fb.depth = 15; in ephyrScreenInitialize()
146 screen->fb.bitsPerPixel = 16; in ephyrScreenInitialize()
148 else if (screen->fb.depth <= 16) { in ephyrScreenInitialize()
149 screen->fb.depth = 16; in ephyrScreenInitialize()
150 screen->fb.bitsPerPixel = 16; in ephyrScreenInitialize()
152 else if (screen->fb.depth <= 24) { in ephyrScreenInitialize()
153 screen->fb.depth = 24; in ephyrScreenInitialize()
154 screen->fb.bitsPerPixel = 32; in ephyrScreenInitialize()
156 else if (screen->fb.depth <= 30) { in ephyrScreenInitialize()
157 screen->fb.depth = 30; in ephyrScreenInitialize()
158 screen->fb.bitsPerPixel = 32; in ephyrScreenInitialize()
161 ErrorF("\nXephyr: Unsupported screen depth %d\n", screen->fb.depth); in ephyrScreenInitialize()
165 hostx_get_visual_masks(screen, &redMask, &greenMask, &blueMask); in ephyrScreenInitialize()
167 screen->fb.redMask = (Pixel) redMask; in ephyrScreenInitialize()
168 screen->fb.greenMask = (Pixel) greenMask; in ephyrScreenInitialize()
169 screen->fb.blueMask = (Pixel) blueMask; in ephyrScreenInitialize()
173 scrpriv->randr = screen->randr; in ephyrScreenInitialize()
175 return ephyrMapFramebuffer(screen); in ephyrScreenInitialize()
198 ephyrBufferHeight(KdScreenInfo * screen) in ephyrBufferHeight() argument
203 buffer_height = screen->height; in ephyrBufferHeight()
205 buffer_height = 3 * screen->height; in ephyrBufferHeight()
210 ephyrMapFramebuffer(KdScreenInfo * screen) in ephyrMapFramebuffer() argument
212 EphyrScrPriv *scrpriv = screen->driver; in ephyrMapFramebuffer()
213 EphyrPriv *priv = screen->card->driver; in ephyrMapFramebuffer()
218 screen->width, screen->height, screen->mynum); in ephyrMapFramebuffer()
224 KdComputePointerMatrix(&m, ephyrRandr, screen->width, screen->height); in ephyrMapFramebuffer()
227 buffer_height = ephyrBufferHeight(screen); in ephyrMapFramebuffer()
230 hostx_screen_init(screen, screen->x, screen->y, in ephyrMapFramebuffer()
231 screen->width, screen->height, buffer_height, in ephyrMapFramebuffer()
232 &priv->bytes_per_line, &screen->fb.bitsPerPixel); in ephyrMapFramebuffer()
237 screen->fb.byteStride = priv->bytes_per_line; in ephyrMapFramebuffer()
238 screen->fb.pixelStride = screen->width; in ephyrMapFramebuffer()
239 screen->fb.frameBuffer = (CARD8 *) (priv->base); in ephyrMapFramebuffer()
247 KdShadowFbAlloc(screen, in ephyrMapFramebuffer()
258 KdScreenInfo *screen = pScreenPriv->screen; in ephyrSetScreenSizes() local
259 EphyrScrPriv *scrpriv = screen->driver; in ephyrSetScreenSizes()
262 pScreen->width = screen->width; in ephyrSetScreenSizes()
263 pScreen->height = screen->height; in ephyrSetScreenSizes()
264 pScreen->mmWidth = screen->width_mm; in ephyrSetScreenSizes()
265 pScreen->mmHeight = screen->height_mm; in ephyrSetScreenSizes()
268 pScreen->width = screen->height; in ephyrSetScreenSizes()
269 pScreen->height = screen->width; in ephyrSetScreenSizes()
270 pScreen->mmWidth = screen->height_mm; in ephyrSetScreenSizes()
271 pScreen->mmHeight = screen->width_mm; in ephyrSetScreenSizes()
276 ephyrUnmapFramebuffer(KdScreenInfo * screen) in ephyrUnmapFramebuffer() argument
278 EphyrScrPriv *scrpriv = screen->driver; in ephyrUnmapFramebuffer()
281 KdShadowFbFree(screen); in ephyrUnmapFramebuffer()
292 KdScreenInfo *screen = pScreenPriv->screen; in ephyrShadowUpdate() local
301 hostx_paint_rect(screen, 0, 0, 0, 0, screen->width, screen->height); in ephyrShadowUpdate()
308 KdScreenInfo *screen = pScreenPriv->screen; in ephyrInternalDamageRedisplay() local
309 EphyrScrPriv *scrpriv = screen->driver; in ephyrInternalDamageRedisplay()
328 hostx_paint_rect(screen, in ephyrInternalDamageRedisplay()
353 KdScreenInfo *screen = pScreenPriv->screen; in ephyrScreenBlockHandler() local
354 EphyrScrPriv *scrpriv = screen->driver; in ephyrScreenBlockHandler()
375 KdScreenInfo *screen = pScreenPriv->screen; in ephyrSetInternalDamage() local
376 EphyrScrPriv *scrpriv = screen->driver; in ephyrSetInternalDamage()
394 KdScreenInfo *screen = pScreenPriv->screen; in ephyrUnsetInternalDamage() local
395 EphyrScrPriv *scrpriv = screen->driver; in ephyrUnsetInternalDamage()
406 KdScreenInfo *screen = pScreenPriv->screen; in ephyrRandRGetInfo() local
407 EphyrScrPriv *scrpriv = screen->driver; in ephyrRandRGetInfo()
437 if (!hostx_want_preexisting_window(screen) in ephyrRandRGetInfo()
443 (sizes[n].width * screen->width_mm) / screen->width, in ephyrRandRGetInfo()
444 (sizes[n].height * screen->height_mm) / in ephyrRandRGetInfo()
445 screen->height); in ephyrRandRGetInfo()
451 screen->width, in ephyrRandRGetInfo()
452 screen->height, screen->width_mm, screen->height_mm); in ephyrRandRGetInfo()
454 randr = KdSubRotation(scrpriv->randr, screen->randr); in ephyrRandRGetInfo()
466 KdScreenInfo *screen = pScreenPriv->screen; in ephyrRandRSetConfig() local
467 EphyrScrPriv *scrpriv = screen->driver; in ephyrRandRSetConfig()
474 if (screen->randr & (RR_Rotate_0 | RR_Rotate_180)) { in ephyrRandRSetConfig()
488 oldwidth = screen->width; in ephyrRandRSetConfig()
489 oldheight = screen->height; in ephyrRandRSetConfig()
505 ephyrRandr = KdAddRotation(screen->randr, randr); in ephyrRandRSetConfig()
508 ephyrUnmapFramebuffer(screen); in ephyrRandRSetConfig()
510 screen->width = newwidth; in ephyrRandRSetConfig()
511 screen->height = newheight; in ephyrRandRSetConfig()
513 scrpriv->win_width = screen->width; in ephyrRandRSetConfig()
514 scrpriv->win_height = screen->height; in ephyrRandRSetConfig()
521 if (!ephyrMapFramebuffer(screen)) in ephyrRandRSetConfig()
527 KdShadowUnset(screen->pScreen); in ephyrRandRSetConfig()
529 ephyrUnsetInternalDamage(screen->pScreen); in ephyrRandRSetConfig()
531 ephyrSetScreenSizes(screen->pScreen); in ephyrRandRSetConfig()
534 if (!KdShadowSet(screen->pScreen, in ephyrRandRSetConfig()
547 if (!ephyrSetInternalDamage(screen->pScreen)) in ephyrRandRSetConfig()
557 screen->fb.depth, in ephyrRandRSetConfig()
558 screen->fb.bitsPerPixel, in ephyrRandRSetConfig()
559 screen->fb.byteStride, in ephyrRandRSetConfig()
560 screen->fb.frameBuffer); in ephyrRandRSetConfig()
576 ephyrUnmapFramebuffer(screen); in ephyrRandRSetConfig()
578 (void) ephyrMapFramebuffer(screen); in ephyrRandRSetConfig()
610 KdScreenInfo *screen = pScreenPriv->screen; in ephyrResizeScreen() local
615 if (screen->randr & (RR_Rotate_90|RR_Rotate_270)) { in ephyrResizeScreen()
621 if (newwidth == screen->width && newheight == screen->height) { in ephyrResizeScreen()
629 ret = ephyrRandRSetConfig (pScreen, screen->randr, 0, &size); in ephyrResizeScreen()
654 KdScreenInfo *screen = pScreenPriv->screen; in ephyrInitScreen() local
657 hostx_set_screen_number(screen, pScreen->myNum); in ephyrInitScreen()
659 hostx_set_win_title(screen, "xephyr"); in ephyrInitScreen()
661 hostx_set_win_title(screen, "(ctrl+shift grabs mouse and keyboard)"); in ephyrInitScreen()
686 KdScreenInfo *screen = pScreenPriv->screen; in ephyrFinishInitScreen() local
687 EphyrScrPriv *scrpriv = screen->driver; in ephyrFinishInitScreen()
716 KdScreenInfo *screen = pScreenPriv->screen; in ephyrCreateResources() local
717 EphyrScrPriv *scrpriv = screen->driver; in ephyrCreateResources()
738 ephyrScreenFini(KdScreenInfo * screen) in ephyrScreenFini() argument
740 EphyrScrPriv *scrpriv = screen->driver; in ephyrScreenFini()
743 KdShadowFbFree(screen); in ephyrScreenFini()
849 KdScreenInfo *screen = kdscrpriv->screen; in screen_from_window() local
850 EphyrScrPriv *scrpriv = screen->driver; in screen_from_window()
855 return screen; in screen_from_window()
882 KdScreenInfo *screen = screen_from_window(expose->window); in ephyrProcessExpose() local
883 EphyrScrPriv *scrpriv = screen->driver; in ephyrProcessExpose()
892 hostx_paint_rect(scrpriv->screen, 0, 0, 0, 0, in ephyrProcessExpose()
904 KdScreenInfo *screen = screen_from_window(motion->event); in ephyrProcessMouseMotion() local
908 EPHYR_LOG("skipping mouse motion:%d\n", screen->pScreen->myNum); in ephyrProcessMouseMotion()
912 if (ephyrCursorScreen != screen->pScreen) { in ephyrProcessMouseMotion()
915 ephyrCursorScreen->myNum, screen->pScreen->myNum); in ephyrProcessMouseMotion()
916 ephyrWarpCursor(inputInfo.pointer, screen->pScreen, in ephyrProcessMouseMotion()
922 EPHYR_LOG("enqueuing mouse motion:%d\n", screen->pScreen->myNum); in ephyrProcessMouseMotion()
930 x += screen->pScreen->x; in ephyrProcessMouseMotion()
931 y += screen->pScreen->y; in ephyrProcessMouseMotion()
1032 KdScreenInfo *screen = screen_from_window(key->event); in ephyrProcessKeyRelease() local
1033 EphyrScrPriv *scrpriv = screen->driver; in ephyrProcessKeyRelease()
1039 hostx_set_win_title(screen, in ephyrProcessKeyRelease()
1076 (screen, in ephyrProcessKeyRelease()
1102 KdScreenInfo *screen = screen_from_window(configure->window); in ephyrProcessConfigureNotify() local
1103 EphyrScrPriv *scrpriv = screen->driver; in ephyrProcessConfigureNotify()
1111 ephyrResizeScreen(screen->pScreen, configure->width, configure->height); in ephyrProcessConfigureNotify()
1228 KdScreenInfo *screen = pScreenPriv->screen; in ephyrPutColors() local
1229 EphyrScrPriv *scrpriv = screen->driver; in ephyrPutColors()