• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/tcl-105/tk84/tk/win/

Lines Matching +refs:screen +refs:width

110 				  *  represents Windows screen. */
440 * Returns the name of the screen that Tk should use during
469 * Called to set up initial screen info or when an event indicated
470 * display (screen) change.
476 * May change info regarding the screen.
485 Screen *screen;
490 screen = display->screens;
493 screen->width = GetDeviceCaps(dc, HORZRES);
494 screen->height = GetDeviceCaps(dc, VERTRES);
495 screen->mwidth = MulDiv(screen->width, 254,
497 screen->mheight = MulDiv(screen->height, 254,
506 * the HWND and we'll just get blank spots copied onto the screen.
509 screen->ext_data = (XExtData *) GetDeviceCaps(dc, PLANES);
510 screen->root_depth = GetDeviceCaps(dc, BITSPIXEL) * (int) screen->ext_data;
512 if (screen->root_visual != NULL) {
513 ckfree((char *) screen->root_visual);
515 screen->root_visual = (Visual *) ckalloc(sizeof(Visual));
516 screen->root_visual->visualid = 0;
518 screen->root_visual->map_entries = GetDeviceCaps(dc, SIZEPALETTE);
519 screen->root_visual->class = PseudoColor;
520 screen->root_visual->red_mask = 0x0;
521 screen->root_visual->green_mask = 0x0;
522 screen->root_visual->blue_mask = 0x0;
523 } else if (screen->root_depth == 4) {
524 screen->root_visual->class = StaticColor;
525 screen->root_visual->map_entries = 16;
526 } else if (screen->root_depth == 8) {
527 screen->root_visual->class = StaticColor;
528 screen->root_visual->map_entries = 256;
529 } else if (screen->root_depth == 12) {
530 screen->root_visual->class = TrueColor;
531 screen->root_visual->map_entries = 32;
532 screen->root_visual->red_mask = 0xf0;
533 screen->root_visual->green_mask = 0xf000;
534 screen->root_visual->blue_mask = 0xf00000;
535 } else if (screen->root_depth == 16) {
536 screen->root_visual->class = TrueColor;
537 screen->root_visual->map_entries = 64;
538 screen->root_visual->red_mask = 0xf8;
539 screen->root_visual->green_mask = 0xfc00;
540 screen->root_visual->blue_mask = 0xf80000;
541 } else if (screen->root_depth >= 24) {
542 screen->root_visual->class = TrueColor;
543 screen->root_visual->map_entries = 256;
544 screen->root_visual->red_mask = 0xff;
545 screen->root_visual->green_mask = 0xff00;
546 screen->root_visual->blue_mask = 0xff0000;
548 screen->root_visual->bits_per_rgb = screen->root_depth;
551 if (screen->cmap != None) {
552 XFreeColormap(display, screen->cmap);
554 screen->cmap = XCreateColormap(display, None, screen->root_visual,
580 Screen *screen;
606 screen = (Screen *) ckalloc(sizeof(Screen));
607 ZeroMemory(screen, sizeof(Screen));
608 screen->display = display;
621 screen->root = (Window)twdPtr;
627 screen->white_pixel = RGB(255, 255, 255);
628 screen->black_pixel = RGB(0, 0, 0);
629 screen->cmap = None;
631 display->screens = screen;
1022 event.xexpose.width = ps.rcPaint.right - ps.rcPaint.left;
1118 * Compute the screen and window coordinates of the event.