1 /**
2 ** BCC2GRX - Interfacing Borland based graphics programs to LIBGRX
3 ** Copyright (C) 1993-97 by Hartmut Schirmer
4 **
5 **
6 ** Contact : Hartmut Schirmer
7 ** Feldstrasse 118
8 ** D-24105 Kiel
9 ** Germany
10 **
11 ** e-mail : hsc@techfak.uni-kiel.de
12 **
13 ** This file is part of the GRX graphics library.
14 **
15 ** The GRX graphics library is free software; you can redistribute it
16 ** and/or modify it under some conditions; see the "copying.grx" file
17 ** for details.
18 **
19 ** This library is distributed in the hope that it will be useful,
20 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
21 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22 **
23 **/
24
25 #include "bccgrx00.h"
26
27 /* ----------------------------------------------------------------- */
grapherrormsg(int errorcode)28 char *grapherrormsg(int errorcode)
29 {
30 switch (errorcode) {
31 case grOk : return "No error";
32 case grNoInitGraph : return "graphics not initialized";
33 case grNotDetected : return "Graphics hardware not detected";
34 case grFileNotFound : return "Device driver file not found";
35 case grInvalidDriver : return "Invalid device driver file";
36 case grNoLoadMem : return "Not enough memory to load driver";
37 case grNoScanMem : return "Out of memory in scan fill";
38 case grNoFloodMem : return "Out of memory in flood fill";
39 case grFontNotFound : return "Font file not found";
40 case grNoFontMem : return "Not enough memory to load font";
41 case grInvalidMode : return "Invalid graphics mode";
42 case grError : return "Graphics error";
43 case grIOerror : return "Graphics I/O error";
44 case grInvalidFont : return "Invalid font file";
45 case grInvalidFontNum : return "Invalid font number";
46 case grInvalidVersion : return "Invalid File Version Number";
47 }
48 return "Unknown graphics error";
49 }
50