Blame view

sources/3rdparty/phpdocx/pdf/lib/ttf2ufm/src/other/bzscreen.h 988 Bytes
31b7f2792   Kload   Upgrade to ownclo...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
  /*
   * see COPYRIGHT
   */
  
  
  /*
   * Screen for drawing the Bezier curves in text mode
   */
  
  struct screen {
  	unsigned physx;
  	unsigned physy;
  	unsigned cols;
  	unsigned rows;
  	unsigned xoff;
  	unsigned yoff;
  	unsigned minx;
  	unsigned miny;
  	char *dots;
  	double xscale;
  	double yscale;
  } screen;
  
  #define screenabsdot(x,y)	(screen.dots[(y)*screen.cols+(x)])
  #define screendot(x,y)	screenabsdot((x)+screen.xoff, (y)+screen.yoff)
  
  /* prototypes */
  double fmin(double a, double b);
  int abs(int x);
  void initscreen(unsigned physx, unsigned physy, 
  	unsigned cols, unsigned rows, unsigned xoff, unsigned yoff, 
  	unsigned minx, unsigned miny, unsigned maxx, unsigned maxy);
  void drawcurve(int mark, int ax,int ay, 
  	int bx,int by, int cx,int cy, int dx,int dy);
  void drawcurvedir(int mark, int ax,int ay, 
  	int bx,int by, int cx,int cy, int dx,int dy);
  void drawdot(int mark, int x, int y);
  void setabsdot(int mark, int x, int y);
  void setfdot(int mark, double x, double y);
  void printscreen(FILE *f);