File: bscreenrect.c

package info (click to toggle)
wily 0.13.41-6
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,560 kB
  • ctags: 3,426
  • sloc: ansic: 25,364; perl: 580; makefile: 445; sh: 415; python: 30; exp: 17
file content (17 lines) | stat: -rw-r--r-- 348 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Copyright (c) 1992 AT&T - All rights reserved. */
#include <libc.h>
#include <libg.h>
#include "libgint.h"

/*
 * The screen data structure should always be up to date
 * (Not true in the Plan 9 library, which is why this
 * function exists).
 */
Rectangle
bscreenrect(Rectangle *clipr)
{
	if(clipr)
		*clipr = screen.clipr;
	return screen.r;
}