| version 1.1, 2003/08/12 20:50:59 |
version 1.2, 2003/09/07 20:26:31 |
|
|
| |
|
| /* TurboC.h */ |
/* TurboC.h */ |
| |
|
| // Integer-type stuff that differs depending on whether the original |
/* Integer-type stuff that differs depending on whether the original */ |
| // source code was for a 16-bit compiler (default) or 32-bit. |
/* source code was for a 16-bit compiler (default) or 32-bit. */ |
| typedef char gchar; |
typedef char gchar; |
| typedef signed char gschar; |
typedef signed char gschar; |
| typedef unsigned char guchar; |
typedef unsigned char guchar; |
| Line 49 typedef unsigned long gulong; |
|
| Line 49 typedef unsigned long gulong; |
|
| |
|
| extern int AssociatePixmap (void *object, Pixmap handle); |
extern int AssociatePixmap (void *object, Pixmap handle); |
| |
|
| // Stuff involved in gracefully exiting the program. |
/* Stuff involved in gracefully exiting the program. */ |
| void TurboTrap (void); |
void TurboTrap (void); |
| int TurboX (int); |
int TurboX (int); |
| |
|
| /* conio.h */ |
/* conio.h */ |
| |
|
| // Graphics-window keyboard buffer. |
/* Graphics-window keyboard buffer. */ |
| int TcAddKeybuf (char c); |
int TcAddKeybuf (char c); |
| int TcExtractKeybuf (char *c); |
int TcExtractKeybuf (char *c); |
| |
|
| //---------------------------------------------------------------------------- |
/*---------------------------------------------------------------------------- */ |
| // Constants. |
/* Constants. */ |
| |
|
| // A conversion factor. |
/* A conversion factor. */ |
| #define RADIANS_PER_DEGREE 0.017453292 |
#define RADIANS_PER_DEGREE 0.017453292 |
| |
|
| // This is the maximum number of simultaneously usable image buffers for |
/* This is the maximum number of simultaneously usable image buffers for */ |
| // putimage and getimage are allowed. |
/* putimage and getimage are allowed. */ |
| //#define MAX_TCIMAGEBUFS 32 |
/*#define MAX_TCIMAGEBUFS 32 */ |
| |
|
| // This actually a Turbo C constant (though it may look like one of mine). |
/* This actually a Turbo C constant (though it may look like one of mine). */ |
| // It refers to the maximum color index in a Turbo C palette, and shouldn't be |
/* It refers to the maximum color index in a Turbo C palette, and shouldn't be */ |
| // messed with. It has no relationship to the TurboC library palettes. |
/* messed with. It has no relationship to the TurboC library palettes. */ |
| #define MAXCOLORS 15 |
#define MAXCOLORS 15 |
| |
|
| // Colors. We protect some of them with a conditional, |
/* Colors. We protect some of them with a conditional, */ |
| // because they're also defined (identically) in graphics.h, which |
/* because they're also defined (identically) in graphics.h, which */ |
| // may or may not have already been loaded. |
/* may or may not have already been loaded. */ |
| #ifndef TC_COLORS_DEFINED |
#ifndef TC_COLORS_DEFINED |
| #define TC_COLORS_DEFINED |
#define TC_COLORS_DEFINED |
| #define BLACK 0 |
#define BLACK 0 |
| Line 95 int TcExtractKeybuf (char *c); |
|
| Line 95 int TcExtractKeybuf (char *c); |
|
| #define LIGHTMAGENTA 13 |
#define LIGHTMAGENTA 13 |
| #define YELLOW 14 |
#define YELLOW 14 |
| #define WHITE 15 |
#define WHITE 15 |
| #endif // TC_COLORS_DEFINED |
#endif /* TC_COLORS_DEFINED */ |
| |
|
| #define CGA_LIGHTGREEN 1 |
#define CGA_LIGHTGREEN 1 |
| #define CGA_LIGHTRED 2 |
#define CGA_LIGHTRED 2 |
| Line 127 int TcExtractKeybuf (char *c); |
|
| Line 127 int TcExtractKeybuf (char *c); |
|
| #define EGA_YELLOW 62 |
#define EGA_YELLOW 62 |
| #define EGA_WHITE 63 |
#define EGA_WHITE 63 |
| |
|
| // Error codes. |
/* Error codes. */ |
| enum graphics_errors |
enum graphics_errors |
| { |
{ |
| grOk = 0, |
grOk = 0, |
| Line 149 enum graphics_errors |
|
| Line 149 enum graphics_errors |
|
| grInvalidVersion = -18 |
grInvalidVersion = -18 |
| }; |
}; |
| |
|
| // Defines the allowed "graphics drivers" for initgraph. Those up through |
/* Defines the allowed "graphics drivers" for initgraph. Those up through */ |
| // 10 are available in Turbo C 2.0. The others are present in Borland C++ |
/* 10 are available in Turbo C 2.0. The others are present in Borland C++ */ |
| // 5.0, but I don't know exactly what version they first appeared in. |
/* 5.0, but I don't know exactly what version they first appeared in. */ |
| // Oddly, graphics.h is completely missing from the free compiler Borland C++ |
/* Oddly, graphics.h is completely missing from the free compiler Borland C++ */ |
| // 5.5. |
/* 5.5. */ |
| #define DETECT 0 |
#define DETECT 0 |
| #define CGA 1 |
#define CGA 1 |
| #define MCGA 2 |
#define MCGA 2 |
| Line 200 enum graphics_errors |
|
| Line 200 enum graphics_errors |
|
| #define ATIGUP 43 |
#define ATIGUP 43 |
| #define DETECTX 256 |
#define DETECTX 256 |
| |
|
| // Here are RGB definitions of the X equivalents (I hope) for the various |
/* Here are RGB definitions of the X equivalents (I hope) for the various */ |
| // Turbo C colors. |
/* Turbo C colors. */ |
| #define XBLACK { 0x0000, 0x0000, 0x0000 } |
#define XBLACK { 0x0000, 0x0000, 0x0000 } |
| #define XBLUE { 0x0000, 0x0000, 0x8000 } |
#define XBLUE { 0x0000, 0x0000, 0x8000 } |
| #define XGREEN { 0x0000, 0x8000, 0x0000 } |
#define XGREEN { 0x0000, 0x8000, 0x0000 } |
| Line 219 enum graphics_errors |
|
| Line 219 enum graphics_errors |
|
| #define XYELLOW { 0xff00, 0xff00, 0x0000 } |
#define XYELLOW { 0xff00, 0xff00, 0x0000 } |
| #define XWHITE { 0xff00, 0xff00, 0xff00 } |
#define XWHITE { 0xff00, 0xff00, 0xff00 } |
| |
|
| // Here are all of the allowed graphics modes. We encode the modes |
/* Here are all of the allowed graphics modes. We encode the modes */ |
| // differently (i.e., with different numerical constants) than Borland |
/* differently (i.e., with different numerical constants) than Borland */ |
| // does, but *hopefully* this won't cause any problem. This is done because |
/* does, but *hopefully* this won't cause any problem. This is done because */ |
| // we simulate the graphics screen within X, rather than using hardware |
/* we simulate the graphics screen within X, rather than using hardware */ |
| // modes of the graphics controller. We define a set of allowed x-resolutions, |
/* modes of the graphics controller. We define a set of allowed x-resolutions, */ |
| // y-resolutions, graphics-page counts, and palettes, and the modes are |
/* y-resolutions, graphics-page counts, and palettes, and the modes are */ |
| // any combination of these. |
/* any combination of these. */ |
| // |
/* */ |
| // The constants beginning TC_xxxx are used only for *defining* the |
/* The constants beginning TC_xxxx are used only for *defining* the */ |
| // constants actually used by Turbo C. If desirable, we can add new |
/* constants actually used by Turbo C. If desirable, we can add new */ |
| // TC_xxxx constants later -- say, to go up to resolutions of 1600x1200 -- |
/* TC_xxxx constants later -- say, to go up to resolutions of 1600x1200 -- */ |
| // as long as the number of x-resolutions times the number of y-resolutions, |
/* as long as the number of x-resolutions times the number of y-resolutions, */ |
| // times the number of pages, times the number of palettes remains |
/* times the number of pages, times the number of palettes remains */ |
| // less than 65536. |
/* less than 65536. */ |
| |
|
| // x-resolutions. |
/* x-resolutions. */ |
| #define TC_X_320 0 |
#define TC_X_320 0 |
| #define TC_X_640 1 |
#define TC_X_640 1 |
| #define TC_X_720 2 |
#define TC_X_720 2 |
| #define TC_X_800 3 |
#define TC_X_800 3 |
| #define TC_X_1024 4 |
#define TC_X_1024 4 |
| #define TC_X_1280 5 |
#define TC_X_1280 5 |
| #define TCX 6 // Number of x-resolutions. |
#define TCX 6 /* Number of x-resolutions. */ |
| |
|
| // y-resolutions. |
/* y-resolutions. */ |
| #define TC_Y_200 0 |
#define TC_Y_200 0 |
| #define TC_Y_348 1 |
#define TC_Y_348 1 |
| #define TC_Y_350 2 |
#define TC_Y_350 2 |
| Line 252 enum graphics_errors |
|
| Line 252 enum graphics_errors |
|
| #define TC_Y_600 5 |
#define TC_Y_600 5 |
| #define TC_Y_768 6 |
#define TC_Y_768 6 |
| #define TC_Y_1024 7 |
#define TC_Y_1024 7 |
| #define TCY 8 // Number of y-resolutions. |
#define TCY 8 /* Number of y-resolutions. */ |
| #define TCXY (TCX*TCY) |
#define TCXY (TCX*TCY) |
| |
|
| // graphics-page counts. |
/* graphics-page counts. */ |
| #define TC_PG_1 0 |
#define TC_PG_1 0 |
| #define TC_PG_2 1 |
#define TC_PG_2 1 |
| #define TC_PG_4 2 |
#define TC_PG_4 2 |
| #define TCG 3 // Number of page-counts. |
#define TCG 3 /* Number of page-counts. */ |
| #define TCXYG (TCX*TCY*TCG) |
#define TCXYG (TCX*TCY*TCG) |
| |
|
| // palettes. I don't actually know |
/* palettes. I don't actually know */ |
| // which palettes are used for the so-called "extended" modes associated |
/* which palettes are used for the so-called "extended" modes associated */ |
| // with drivers 11 and up, so I give it the special name TC_PAL_X. |
/* with drivers 11 and up, so I give it the special name TC_PAL_X. */ |
| #define TC_PAL_2 0 |
#define TC_PAL_2 0 |
| #define TC_PAL_C0 1 |
#define TC_PAL_C0 1 |
| #define TC_PAL_C1 2 |
#define TC_PAL_C1 2 |
| Line 273 enum graphics_errors |
|
| Line 273 enum graphics_errors |
|
| #define TC_PAL_4 5 |
#define TC_PAL_4 5 |
| #define TC_PAL_16 6 |
#define TC_PAL_16 6 |
| #define TC_PAL_256 7 |
#define TC_PAL_256 7 |
| // #define TC_PAL_X TC_PAL_256 |
/* #define TC_PAL_X TC_PAL_256 */ |
| #define TCP 8 // Number of palettes. |
#define TCP 8 /* Number of palettes. */ |
| #define TCXYGP (TCX*TCY*TCG*TCP) |
#define TCXYGP (TCX*TCY*TCG*TCP) |
| |
|
| // Okay, here are the actual constants used within Turbo C programs. |
/* Okay, here are the actual constants used within Turbo C programs. */ |
| // These are *not* the exact numbers used in true Borland Turbo C, |
/* These are *not* the exact numbers used in true Borland Turbo C, */ |
| // so programs that hard-code these numbers rather than using the |
/* so programs that hard-code these numbers rather than using the */ |
| // Borland-supplied constants are going to be in trouble. (Too bad |
/* Borland-supplied constants are going to be in trouble. (Too bad */ |
| // for them, I say.) |
/* for them, I say.) */ |
| // |
/* */ |
| // Since it may not be obvious why the values are encoded the way they |
/* Since it may not be obvious why the values are encoded the way they */ |
| // are -- instead, say, of providing a simple 4-bit field for each of |
/* are -- instead, say, of providing a simple 4-bit field for each of */ |
| // the 4 values being encoded (x-resolution, y-resolution, number of |
/* the 4 values being encoded (x-resolution, y-resolution, number of */ |
| // graphics pages, and palette type) -- the reason has entirely to do |
/* graphics pages, and palette type) -- the reason has entirely to do */ |
| // with the Turbo C getmoderange function. This function pre-supposes |
/* with the Turbo C getmoderange function. This function pre-supposes */ |
| // that the allowable graphics modes for any given graphics driver are |
/* that the allowable graphics modes for any given graphics driver are */ |
| // in a range of integer values. This requires that there be no *gaps* |
/* in a range of integer values. This requires that there be no *gaps* */ |
| // in the sequence, so that if we give a ranges of modes from n to n+N, |
/* in the sequence, so that if we give a ranges of modes from n to n+N, */ |
| // every one of the intervening values represents a legal mode. By |
/* every one of the intervening values represents a legal mode. By */ |
| // encoding the modes in the way we have, all of the gaps are closed |
/* encoding the modes in the way we have, all of the gaps are closed */ |
| // up, and every value from 0 to TCXYGP-1 is a legal mode -- though |
/* up, and every value from 0 to TCXYGP-1 is a legal mode -- though */ |
| // not necessarily one which has been assigned a symbolic name below. |
/* not necessarily one which has been assigned a symbolic name below. */ |
| // |
/* */ |
| // Note that if we add new possibilities later -- say, 1600x1200 -- |
/* Note that if we add new possibilities later -- say, 1600x1200 -- */ |
| // then the values of the constants below could differ in different |
/* then the values of the constants below could differ in different */ |
| // versions of the TurboC library. |
/* versions of the TurboC library. */ |
| #define CGAC0 (TC_X_320 + TCX*TC_Y_200 + TCXY*TC_PG_1 + TCXYG*TC_PAL_C0) |
#define CGAC0 (TC_X_320 + TCX*TC_Y_200 + TCXY*TC_PG_1 + TCXYG*TC_PAL_C0) |
| #define CGAC1 (TC_X_320 + TCX*TC_Y_200 + TCXY*TC_PG_1 + TCXYG*TC_PAL_C1) |
#define CGAC1 (TC_X_320 + TCX*TC_Y_200 + TCXY*TC_PG_1 + TCXYG*TC_PAL_C1) |
| #define CGAC2 (TC_X_320 + TCX*TC_Y_200 + TCXY*TC_PG_1 + TCXYG*TC_PAL_C2) |
#define CGAC2 (TC_X_320 + TCX*TC_Y_200 + TCXY*TC_PG_1 + TCXYG*TC_PAL_C2) |
| Line 328 enum graphics_errors |
|
| Line 328 enum graphics_errors |
|
| #define PC3270HI (TC_X_720 + TCX*TC_Y_350 + TCXY*TC_PG_1 + TCXYG*TC_PAL_2) |
#define PC3270HI (TC_X_720 + TCX*TC_Y_350 + TCXY*TC_PG_1 + TCXYG*TC_PAL_2) |
| #define IBM8514LO (TC_X_640 + TCX*TC_Y_480 + TCXY*TC_PG_1 + TCXYG*TC_PAL_256) |
#define IBM8514LO (TC_X_640 + TCX*TC_Y_480 + TCXY*TC_PG_1 + TCXYG*TC_PAL_256) |
| #define IBM8514HI (TC_X_1024 + TCX*TC_Y_768 + TCXY*TC_PG_1 + TCXYG*TC_PAL_256) |
#define IBM8514HI (TC_X_1024 + TCX*TC_Y_768 + TCXY*TC_PG_1 + TCXYG*TC_PAL_256) |
| //#define RES640x350 (TC_X_640 + TCX*TC_Y_350 + TCXY*TC_PG_1 + TCXYG*PC_PAL_X) |
/*#define RES640x350 (TC_X_640 + TCX*TC_Y_350 + TCXY*TC_PG_1 + TCXYG*PC_PAL_X) */ |
| //#define RES640x480 (TC_X_640 + TCX*TC_Y_480 + TCXY*TC_PG_1 + TCXYG*PC_PAL_X) |
/*#define RES640x480 (TC_X_640 + TCX*TC_Y_480 + TCXY*TC_PG_1 + TCXYG*PC_PAL_X) */ |
| //#define RES800x600 (TC_X_800 + TCX*TC_Y_600 + TCXY*TC_PG_1 + TCXYG*PC_PAL_X) |
/*#define RES800x600 (TC_X_800 + TCX*TC_Y_600 + TCXY*TC_PG_1 + TCXYG*PC_PAL_X) */ |
| //#define RES1024x768 (TC_X_1024 + TCX*TC_Y_768 + TCXY*TC_PG_1 + TCXYG*PC_PAL_X) |
/*#define RES1024x768 (TC_X_1024 + TCX*TC_Y_768 + TCXY*TC_PG_1 + TCXYG*PC_PAL_X) */ |
| //#define RES1280x1024 (TC_X_1280 + 0x10*TC_Y_1024 + TCXY*TC_PG_1 + TCXYG*PC_PAL_X) |
/*#define RES1280x1024 (TC_X_1280 + 0x10*TC_Y_1024 + TCXY*TC_PG_1 + TCXYG*PC_PAL_X) */ |
| |
|
| // Write-modes. |
/* Write-modes. */ |
| #define COPY_PUT 0 |
#define COPY_PUT 0 |
| #define XOR_PUT 1 |
#define XOR_PUT 1 |
| #define OR_PUT 2 |
#define OR_PUT 2 |
| #define AND_PUT 3 |
#define AND_PUT 3 |
| #define NOT_PUT 4 |
#define NOT_PUT 4 |
| |
|
| // Line-style stuff. |
/* Line-style stuff. */ |
| #define SOLID_LINE 0 |
#define SOLID_LINE 0 |
| #define DOTTED_LINE 1 |
#define DOTTED_LINE 1 |
| #define CENTER_LINE 2 |
#define CENTER_LINE 2 |
|
|
| MAX_FONT = 11 |
MAX_FONT = 11 |
| }; |
}; |
| |
|
| // Text directions. |
/* Text directions. */ |
| #define HORIZ_DIR 0 |
#define HORIZ_DIR 0 |
| #define VERT_DIR 1 |
#define VERT_DIR 1 |
| |
|
| // Text justification. |
/* Text justification. */ |
| #define LEFT_TEXT 0 |
#define LEFT_TEXT 0 |
| #define BOTTOM_TEXT 0 |
#define BOTTOM_TEXT 0 |
| #define CENTER_TEXT 1 |
#define CENTER_TEXT 1 |
| #define RIGHT_TEXT 2 |
#define RIGHT_TEXT 2 |
| #define TOP_TEXT 2 |
#define TOP_TEXT 2 |
| |
|
| // Fill styles. |
/* Fill styles. */ |
| #define EMPTY_FILL 0 |
#define EMPTY_FILL 0 |
| #define SOLID_FILL 1 |
#define SOLID_FILL 1 |
| #define LINE_FILL 2 |
#define LINE_FILL 2 |
|
|
| #define CLOSE_DOT_FILL 11 |
#define CLOSE_DOT_FILL 11 |
| #define USER_FILL 12 |
#define USER_FILL 12 |
| |
|
| //---------------------------------------------------------------------------- |
/*---------------------------------------------------------------------------- */ |
| // Data types. |
/* Data types. */ |
| |
|
| // A little toy of my own. |
/* A little toy of my own. */ |
| typedef struct |
typedef struct |
| { |
{ |
| gint r, g, b; |
gint r, g, b; |
| } |
} |
| RgbStruct; |
RgbStruct; |
| |
|
| // The following are all datatypes defined by true Turbo C. |
/* The following are all datatypes defined by true Turbo C. */ |
| |
|
| struct arccoordstype |
struct arccoordstype |
| { |
{ |
| Line 444 struct viewporttype |
|
| Line 444 struct viewporttype |
|
| int clip; |
int clip; |
| }; |
}; |
| |
|
| // This is the structure which holds data for the getimage/putimage |
/* This is the structure which holds data for the getimage/putimage */ |
| // functions. It is not used explicitly (or even defined) by true Turbo C |
/* functions. It is not used explicitly (or even defined) by true Turbo C */ |
| // but it's convenient for us to define it! We keep a pool of these |
/* but it's convenient for us to define it! We keep a pool of these */ |
| // in an array (TcImageBuffers). |
/* in an array (TcImageBuffers). */ |
| struct TcImageBuffer |
struct TcImageBuffer |
| { |
{ |
| gushort Width; |
gushort Width; |
| Line 455 struct TcImageBuffer |
|
| Line 455 struct TcImageBuffer |
|
| Pixmap Handle; |
Pixmap Handle; |
| }; |
}; |
| |
|
| //---------------------------------------------------------------------------- |
/*---------------------------------------------------------------------------- */ |
| // Function prototypes. |
/* Function prototypes. */ |
| |
|
| __BEGIN_DECLS |
__BEGIN_DECLS |
| |
|
| // |
/* */ |
| extern void arc (int x, int y, int stangle, int endangle, int radius); |
extern void arc (int x, int y, int stangle, int endangle, int radius); |
| extern void bar (int left, int top, int right, int bottom); |
extern void bar (int left, int top, int right, int bottom); |
| extern void bar3d (int left, int top, int right, int bottom, |
extern void bar3d (int left, int top, int right, int bottom, |
| Line 486 extern void getfillpattern (char *patter |
|
| Line 486 extern void getfillpattern (char *patter |
|
| extern void getfillsettings (struct fillsettingstype *fillinfo); |
extern void getfillsettings (struct fillsettingstype *fillinfo); |
| extern int getgraphmode (void); |
extern int getgraphmode (void); |
| extern void getimage (int left, int top, int right, int bottom, void *bitmap); |
extern void getimage (int left, int top, int right, int bottom, void *bitmap); |
| //extern void freeimage (void *bitmap); |
/*extern void freeimage (void *bitmap); */ |
| extern void getlinesettings (struct linesettingstype *lineinfo); |
extern void getlinesettings (struct linesettingstype *lineinfo); |
| extern int getmaxcolor (void); |
extern int getmaxcolor (void); |
| extern int getmaxmode (void); |
extern int getmaxmode (void); |
| Line 555 extern void setwritemode (int mode); |
|
| Line 555 extern void setwritemode (int mode); |
|
| extern int textheight (char *textstring); |
extern int textheight (char *textstring); |
| extern int textwidth (char *textstring); |
extern int textwidth (char *textstring); |
| |
|
| // Non-user-callable functions. Really, just names for use as function |
/* Non-user-callable functions. Really, just names for use as function */ |
| // parameters in the registerbgidriver and registerbgifont functions. |
/* parameters in the registerbgidriver and registerbgifont functions. */ |
| extern void CGA_driver (void); |
extern void CGA_driver (void); |
| extern void EGAVGA_driver (void); |
extern void EGAVGA_driver (void); |
| extern void IBM8514_driver (void); |
extern void IBM8514_driver (void); |
| Line 569 extern void sansserif_font (void); |
|
| Line 569 extern void sansserif_font (void); |
|
| extern void gothic_font (void); |
extern void gothic_font (void); |
| |
|
| __END_DECLS |
__END_DECLS |
| //-------------------------------------------------------------------------- |
/*-------------------------------------------------------------------------- */ |
| // Variables. |
/* Variables. */ |
| #ifdef TURBOC_VARIABLES_C |
#ifdef TURBOC_VARIABLES_C |
| volatile int TcGraphicsInitialized = 0; |
volatile int TcGraphicsInitialized = 0; |
| int TcCurrentGraphMode, TcGraphResult = grOk; |
int TcCurrentGraphMode, TcGraphResult = grOk; |
| Line 617 int TcTextFont, TcTextDirection, TcTextC |
|
| Line 617 int TcTextFont, TcTextDirection, TcTextC |
|
| int TcTextMultX, TcTextDivX, TcTextMultY, TcTextDivY; |
int TcTextMultX, TcTextDivX, TcTextMultY, TcTextDivY; |
| int TcFillStyle = SOLID_FILL, TcFillColor = 1; |
int TcFillStyle = SOLID_FILL, TcFillColor = 1; |
| guchar TcUserFillPattern[8] = { 255, 255, 255, 255, 255, 255, 255, 255 }; |
guchar TcUserFillPattern[8] = { 255, 255, 255, 255, 255, 255, 255, 255 }; |
| //struct TcPixmapPoolRecord TcPixmapPool[MAX_TCIMAGEBUFS] = { { 0 } }; |
/*struct TcPixmapPoolRecord TcPixmapPool[MAX_TCIMAGEBUFS] = { { 0 } }; */ |
| Display *TcDisplay; |
Display *TcDisplay; |
| Window TcWindow; |
Window TcWindow; |
| Pixmap TcPixmaps[16]; |
Pixmap TcPixmaps[16]; |
|
|
| Colormap TcColormap; |
Colormap TcColormap; |
| XColor TcXforeground, TcXbackground; |
XColor TcXforeground, TcXbackground; |
| Pixmap TcTile; |
Pixmap TcTile; |
| #else // TURBOC_VARIABLES_C |
#else /* TURBOC_VARIABLES_C */ |
| extern volatile int TcGraphicsInitialized; |
extern volatile int TcGraphicsInitialized; |
| extern int TcCurrentGraphMode, TcGraphResult; |
extern int TcCurrentGraphMode, TcGraphResult; |
| extern int TcXresolution, TcYresolution, TcPageCount, TcPaletteNum; |
extern int TcXresolution, TcYresolution, TcPageCount, TcPaletteNum; |
| Line 658 extern int TcTextFont, TcTextDirection, |
|
| Line 658 extern int TcTextFont, TcTextDirection, |
|
| extern int TcTextMultX, TcTextDivX, TcTextMultY, TcTextDivY; |
extern int TcTextMultX, TcTextDivX, TcTextMultY, TcTextDivY; |
| extern int TcFillStyle, TcFillColor; |
extern int TcFillStyle, TcFillColor; |
| extern char TcUserFillPattern[8]; |
extern char TcUserFillPattern[8]; |
| //extern struct TcPixmapPoolRecord TcPixmapPool[MAX_TCIMAGEBUFS]; |
/*extern struct TcPixmapPoolRecord TcPixmapPool[MAX_TCIMAGEBUFS]; */ |
| extern Display *TcDisplay; |
extern Display *TcDisplay; |
| extern Window TcWindow; |
extern Window TcWindow; |
| extern Pixmap TcPixmaps[16]; |
extern Pixmap TcPixmaps[16]; |
|
|
| extern Colormap TcColormap; |
extern Colormap TcColormap; |
| extern XColor TcXforeground, TcXbackground; |
extern XColor TcXforeground, TcXbackground; |
| extern Pixmap TcTile; |
extern Pixmap TcTile; |
| #endif // TURBOC_VARIABLES_C |
#endif /* TURBOC_VARIABLES_C */ |
| |
|
| #endif // _INCLUDED_GRAPHICS_H |
#endif /* _INCLUDED_GRAPHICS_H */ |
| |
|