File: bscreenrect.c

package info (click to toggle)
sam 4.3-9
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,416 kB
  • ctags: 1,660
  • sloc: ansic: 14,329; makefile: 204; sh: 189
file content (17 lines) | stat: -rw-r--r-- 348 bytes parent folder | download | duplicates (20)
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;
}