File: sizes.h

package info (click to toggle)
pacman 10-13
  • links: PTS
  • area: main
  • in suites: woody
  • size: 664 kB
  • ctags: 1,108
  • sloc: cpp: 3,333; makefile: 502; sh: 96
file content (49 lines) | stat: -rw-r--r-- 1,045 bytes parent folder | download | duplicates (7)
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
41
42
43
44
45
46
47
48
49
#include"basis.h"

#define BOARDWIDTH 33
#define BOARDHEIGHT 23

#ifndef VTX		//if not vt??? unix
#if defined(MSWIN) || !defined(DOUBLE)
#define UNITWIDTH 8		//pixmaps is 8x8
#define UNITHEIGHT 8
#else 
#define UNITWIDTH 16 
#define UNITHEIGHT 16
#endif
#else			//if vt??? unix
#define UNITWIDTH 1	//character 1x1 contains "pixmaps"
#define UNITHEIGHT 1
#endif

//defines different sizes for different fonts
#ifdef XWIN
#ifndef DOUBLE
#define TEXTWIDTH 8
#define TEXTHEIGHT 8
#define FONT1 "5x8"
#define FONT2 "5x7"
#else
#define TEXTWIDTH 8
#define TEXTHEIGHT 16
#define FONT1 "8x16"
#define FONT2 "7x14"
#endif
//#define PFONT "clR6x8.fb"/*clR8x8" "6x10"*/
#elif defined MSWIN
#define TEXTWIDTH 6
#define TEXTHEIGHT 10
//#define PFONT 0
#elif defined VTX
#define TEXTWIDTH 1	//character 1x1 contain lots
#define TEXTHEIGHT 1
#endif

#define TEXTCHARSINLINE 15	//text characters befors board begins

#define TEXTSPACE TEXTWIDTH*TEXTCHARSINLINE		
#define WINWIDTH BOARDWIDTH*UNITWIDTH+TEXTSPACE+20
#define WINHEIGHT BOARDHEIGHT*UNITHEIGHT+40