Home | History | Annotate | Download | only in WinQuake

Lines Matching defs:vid

103 viddef_t vid; // global video state
218 vid.recalc_refdef = 1; // force a surface cache flush
256 vid.width = MP(wattr.width) & ~3;
257 vid.height = MP(wattr.height);
259 if (vid.width < 320)
260 vid.width = 320;
261 if (vid.height < 200)
262 vid.height = 200;
404 vid.width = 320;
405 vid.height = 200;
406 vid.aspect = 1.0;
407 vid.numpages = 2;
408 vid.colormap = host_colormap;
409 vid.fullbright = 256 - LittleLong (*((int *)vid.colormap + 2048));
410 //vid.cbits = VID_CBITS;
411 //vid.grades = VID_GRADES;
425 Sys_Error("VID: Could not open display [%s]\n",
428 Sys_Error("VID: Could not open local display\n");
454 Sys_Error("VID: -winsize <width> <height>\n");
458 Sys_Error("VID: Bad window width/height\n");
468 Sys_Error("VID: -visualid <id#>\n");
492 Sys_Error("VID: Bad visual id %d\n", template.visualid);
494 Sys_Error("VID: No visuals at depth %d\n", template.depth);
522 vid.width = MP(desired_width);
523 vid.height = MP(desired_height);
529 if (vid.width < 320)
530 vid.width = 320;
531 if (vid.height < 200)
532 vid.height = 200;
540 printf("VID: Using multiple threads!\n");
643 //printf("VID_ResetFramebuffer: vid.width %d, vid.height %d\n", vid.width, vid.height);
650 quake_image = xil_create(state, vid.width, vid.height, 1, XIL_BYTE);
663 vid.rowbytes = storage.byte.scanline_stride;
664 vid.buffer = storage.byte.data;
665 vid.conbuffer = vid.buffer;
666 vid.conrowbytes = vid.rowbytes;
667 vid.conwidth = vid.width;
668 vid.conheight = vid.height;
670 vid.maxwarpwidth = WARP_WIDTH;
671 vid.maxwarpheight = WARP_HEIGHT;
672 vid
676 d_pzbuffer = malloc(PM(vid.width)*PM(vid.height)*sizeof(*d_pzbuffer));
677 //Hunk_HighAllocName(PM(vid.width)*PM(vid.height)*sizeof(*d_pzbuffer),"zbuff");
688 printf("VID_ResetFramebuffer: vid.width %d, vid.height %d\n", vid.width, vid.height);
696 Sys_Error("VID: thr_create");
704 d_pzbuffer = malloc(PM(vid.width)*PM(vid.height)*sizeof(*d_pzbuffer));
844 mouse_x = (float) ((int)x_event.xmotion.x - (int)(vid.width/2));
845 mouse_y = (float) ((int)x_event.xmotion.y - (int)(vid.height/2));
852 (vid.width/2),(vid.height/2));
982 vid.width = MP(config_notify_width) & ~3;
983 vid.height = MP(config_notify_height);
985 if (vid.width < 320)
986 vid.width = 320;
987 if (vid.height < 200)
988 vid.height = 200;
1014 vid.buffer = storage.byte.data;
1015 vid.conbuffer = vid.buffer;
1054 vid.width = MP(config_notify_width) & ~3;
1055 vid.height = MP(config_notify_height);
1057 if (vid.width < 320)
1058 vid.width = 320;
1059 if (vid.height < 200)
1060 vid.height = 200;
1089 new = xil_create(state, vid.width, vid.height, 1, XIL_BYTE);
1094 new = xil_create(state, vid.width, vid.height, 1, XIL_BYTE);
1101 vid.rowbytes = storage.byte.scanline_stride;
1102 vid.buffer = storage.byte.data;
1103 vid.conbuffer = vid.buffer;
1104 vid.conrowbytes = vid.rowbytes;
1105 vid.conwidth = vid.width;
1106 vid.conheight = vid.height;
1108 vid.maxwarpwidth = WARP_WIDTH;
1109 vid.maxwarpheight = WARP_HEIGHT;
1110 vid.recalc_refdef = 1; // force a surface cache flush
1133 vid.buffer = storage.byte.data;
1134 vid.conbuffer = vid.buffer;
1170 vid.recalc_refdef = 1;
1178 vid.recalc_refdef = 1;