Introduction
Introduction Statistics Contact Development Disclaimer Help
border.c - sam - An updated version of the sam text editor.
git clone git://vernunftzentrum.de/sam.git
Log
Files
Refs
LICENSE
---
border.c (1237B)
---
1 /* Copyright (c) 1998 Lucent Technologies - All rights reserved. */
2 #include <u.h>
3 #include <libg.h>
4
5 extern uint64_t _borderpixel;
6
7 void
8 border(Bitmap *l, Rectangle r, int i, Fcode c, uint64_t bg)
9 {
10 if(i > 0){
11 bitblt2(l, r.min,
12 l, Rect(r.min.x, r.min.y, r.max.x, r.min.y+i), c, _borderpix…
13 bitblt2(l, Pt(r.min.x, r.max.y-i),
14 l, Rect(r.min.x, r.max.y-i, r.max.x, r.max.y), c, _borderpix…
15 bitblt2(l, Pt(r.min.x, r.min.y+i),
16 l, Rect(r.min.x, r.min.y+i, r.min.x+i, r.max.y-i), c, _borde…
17 bitblt2(l, Pt(r.max.x-i, r.min.y+i),
18 l, Rect(r.max.x-i, r.min.y+i, r.max.x, r.max.y-i), c, _borde…
19 }else if(i < 0){
20 bitblt2(l, Pt(r.min.x, r.min.y+i),
21 l, Rect(r.min.x, r.min.y+i, r.max.x, r.min.y), c, _borderpix…
22 bitblt2(l, Pt(r.min.x, r.max.y),
23 l, Rect(r.min.x, r.max.y, r.max.x, r.max.y-i), c, _borderpix…
24 bitblt2(l, Pt(r.min.x+i, r.min.y+i),
25 l, Rect(r.min.x+i, r.min.y+i, r.min.x, r.max.y-i), c, _borde…
26 bitblt2(l, Pt(r.max.x, r.min.y+i),
27 l, Rect(r.max.x, r.min.y+i, r.max.x-i, r.max.y-i), c, _borde…
28 }
29 }
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.