Lines Matching defs:shot
1204 scrshot_t shot;
1215 shot.x = shot.y = 0;
1216 shot.xsize = _info.mv_csz;
1217 shot.ysize = _info.mv_rsz;
1219 shot.ysize += _info.mv_hsz;
1221 shot.buf = alloca(shot.xsize * shot.ysize * sizeof(u_int16_t));
1222 if (shot.buf == NULL) {
1227 if (ioctl(0, CONS_SCRSHOT, &shot) == -1) {
1234 shot.xsize, shot.ysize);
1238 write(STDOUT_FILENO, shot.buf,
1239 shot.xsize * shot.ysize * sizeof(u_int16_t));
1245 line = alloca(shot.xsize + 1);
1252 for (y = 0; y < shot.ysize; y++) {
1253 for (x = 0; x < shot.xsize; x++) {
1254 ch = shot.buf[x + (y * shot.xsize)];