Introduction
Introduction Statistics Contact Development Disclaimer Help
clipr.c - sam - An updated version of the sam text editor.
git clone git://vernunftzentrum.de/sam.git
Log
Files
Refs
LICENSE
---
clipr.c (429B)
---
1 /* Copyright (c) 1998 Lucent Technologies - All rights reserved. */
2 #include <u.h>
3 #include <libg.h>
4 #include "libgint.h"
5
6 int
7 clipr(Bitmap *d, Rectangle r)
8 {
9 if(rectclip(&r, d->r) == 0)
10 return 0;
11 d->clipr = r;
12 if(r.min.x != d->r.min.x ||
13 r.min.y != d->r.min.y ||
14 r.max.x != d->r.max.x ||
15 r.max.y != d->r.max.y)
16 d->flag |= CLIP;
17 else
18 d->flag &= ~CLIP;
19 return 1;
20 }
You are viewing proxied material from vernunftzentrum.de. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.