Rev 1764 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1764 | Rev 7648 | ||
---|---|---|---|
1 | #pragma once |
1 | #pragma once |
2 | 2 | ||
3 | #include "kosSyst.h" |
3 | #include "kosSyst.h" |
4 | #include "kosFile.h" |
4 | #include "kosFile.h" |
5 | #include "MCSMEMM.H" |
5 | #include "MCSMEMM.H" |
6 | 6 | ||
7 | #include |
7 | #include |
8 | 8 | ||
9 | 9 | ||
10 | #define ERROR 8888888888.9 |
10 | #define ERROR 8888888888.9 |
11 | #define ERROR_END 8888888888.7 |
11 | #define ERROR_END 8888888888.7 |
12 | 12 | ||
13 | #define PREC 2 |
13 | #define PREC 2 |
14 | 14 | ||
15 | typedef int HDC; |
15 | typedef int HDC; |
16 | typedef int DWORD; |
16 | typedef int DWORD; |
17 | 17 | ||
18 | extern int SysColor; |
18 | extern int SysColor; |
19 | extern char debuf[50]; |
19 | extern char debuf[50]; |
20 | 20 | ||
21 | typedef double (*function_t)(double); |
21 | typedef double (*function_t)(double); |
22 | 22 | ||
23 | typedef struct |
23 | typedef struct |
24 | { |
24 | { |
25 | double x, y; |
25 | double x, y; |
26 | } TCoord; |
26 | } TCoord; |
27 | 27 | ||
28 | 28 | ||
- | 29 | Dword kos_GetSkinHeight(); |
|
29 | void kos_DrawLine( Word x1, Word y1, Word x2, Word y2, Dword colour, Dword invert); |
30 | void kos_DrawLine( Word x1, Word y1, Word x2, Word y2, Dword colour, Dword invert); |
30 | void DrawRegion(Dword x,Dword y,Dword width,Dword height,Dword color1); |
31 | void DrawRegion(Dword x,Dword y,Dword width,Dword height,Dword color1); |
31 | int atoi(const char* string); |
32 | int atoi(const char* string); |
32 | 33 | ||
33 | double __cdecl fabs(double x); |
34 | double __cdecl fabs(double x); |
34 | double __cdecl cos(double x); |
35 | double __cdecl cos(double x); |
35 | double __cdecl sin(double x); |
36 | double __cdecl sin(double x); |
36 | int di(double x); |
37 | int di(double x); |
37 | 38 | ||
38 | double id(int x); |
39 | double id(int x); |
39 | bool isalpha(char c); |
40 | bool isalpha(char c); |
40 | double convert(char *s, int *len=NULL); |
41 | double convert(char *s, int *len=NULL); |
41 | void format( char *Str, int len, char* Format, ... ); |
42 | void format( char *Str, int len, char* Format, ... ); |
42 | 43 | ||
43 | void line( int x1, int y1, int x2, int y2); |
44 | void line( int x1, int y1, int x2, int y2); |
44 | 45 | ||
45 | void outtextxy( int x, int y, char *s, int len); |
46 | void outtextxy( int x, int y, char *s, int len); |
46 | void settextstyle( int a1, int a2, int a3); |
47 | void settextstyle( int a1, int a2, int a3); |
47 | 48 | ||
48 | 49 | ||
49 | double textwidth( char *s, int len); |
50 | double textwidth( char *s, int len); |
50 | double textheight( char *s, int len); |
51 | double textheight( char *s, int len); |
51 | void setcolor( DWORD color); |
52 | void setcolor( DWORD color); |
52 | void unsetcolor(HDC hdc); |
53 | void unsetcolor(HDC hdc); |
53 | void rectangle( int x1, int y1, int x2, int y2); |
54 | void rectangle( int x1, int y1, int x2, int y2); |
54 | 55 | ||
55 | typedef struct |
56 | typedef struct |
56 | { |
57 | { |
57 | unsigned p00 ; |
58 | unsigned p00 ; |
58 | unsigned p04 ; |
59 | unsigned p04 ; |
59 | unsigned p08 ; |
60 | unsigned p08 ; |
60 | unsigned p12 ; |
61 | unsigned p12 ; |
61 | unsigned p16 ; |
62 | unsigned p16 ; |
62 | char p20 ; |
63 | char p20 ; |
63 | char *p21 ; |
64 | char *p21 ; |
64 | } kol_struct70 ; |
65 | } kol_struct70 ; |
65 | 66 | ||
66 | 67 | ||
67 | typedef struct |
68 | typedef struct |
68 | { |
69 | { |
69 | unsigned p00 ; |
70 | unsigned p00 ; |
70 | char p04 ; |
71 | char p04 ; |
71 | char p05[3] ; |
72 | char p05[3] ; |
72 | unsigned p08 ; |
73 | unsigned p08 ; |
73 | unsigned p12 ; |
74 | unsigned p12 ; |
74 | unsigned p16 ; |
75 | unsigned p16 ; |
75 | unsigned p20 ; |
76 | unsigned p20 ; |
76 | unsigned p24 ; |
77 | unsigned p24 ; |
77 | unsigned p28 ; |
78 | unsigned p28 ; |
78 | unsigned p32[2] ; |
79 | unsigned p32[2] ; |
79 | unsigned p40 ; |
80 | unsigned p40 ; |
80 | } kol_struct_BDVK ; |
81 | } kol_struct_BDVK ; |
81 | 82 | ||
82 | typedef struct |
83 | typedef struct |
83 | { |
84 | { |
84 | char *name ; |
85 | char *name ; |
85 | void *data ; |
86 | void *data ; |
86 | } kol_struct_import ; |
87 | } kol_struct_import ; |
87 | 88 | ||
88 | 89 | ||
89 | 90 | ||
90 | kol_struct_import* kol_cofflib_load(char *name); |
91 | kol_struct_import* kol_cofflib_load(char *name); |
91 | void* kol_cofflib_procload (kol_struct_import *imp, char *name); |
92 | void* kol_cofflib_procload (kol_struct_import *imp, char *name); |
92 | unsigned kol_cofflib_procnum (kol_struct_import *imp); |
93 | unsigned kol_cofflib_procnum (kol_struct_import *imp); |
93 | void kol_cofflib_procname (kol_struct_import *imp, char *name, unsigned n); |
94 | void kol_cofflib_procname (kol_struct_import *imp, char *name, unsigned n); |
94 | int strcmp(const char* string1, const char* string2); |
95 | int strcmp(const char* string1, const char* string2); |