diff options
Diffstat (limited to 'src/graph/include')
-rw-r--r-- | src/graph/include/Gfun.H1 | 11 | ||||
-rw-r--r-- | src/graph/include/bitmaps/spad11.bitmap | 2 | ||||
-rw-r--r-- | src/graph/include/bitmaps/spad11.mask | 2 | ||||
-rw-r--r-- | src/graph/include/purty/slicer.bitmap | 2 | ||||
-rw-r--r-- | src/graph/include/purty/spadBitmap.bitmap | 2 | ||||
-rw-r--r-- | src/graph/include/purty/spadMask.mask | 2 | ||||
-rw-r--r-- | src/graph/include/spadBitmap.bitmap | 2 | ||||
-rw-r--r-- | src/graph/include/spadMask.mask | 2 | ||||
-rw-r--r-- | src/graph/include/viewport2D.H1 | 2 |
9 files changed, 14 insertions, 13 deletions
diff --git a/src/graph/include/Gfun.H1 b/src/graph/include/Gfun.H1 index 081ccda2..31fb7762 100644 --- a/src/graph/include/Gfun.H1 +++ b/src/graph/include/Gfun.H1 @@ -1,22 +1,22 @@ extern int PSCreateFile(int , Window , Window , char * ); extern int Gdraws_drawFrame(int , Window , Window , char * ); extern int Gdraws_setDimension(Window , Window ); -extern int GDrawImageString(GC , Window , int , int , char * , int , int ); +extern int GDrawImageString(GC , Window , int , int , const char* , int , int ); extern int GDrawArc(GC , Window , int , int , unsigned int , unsigned int , int , int , int ); extern int GDrawLine(GC , Window , int , int , int , int , int ); extern int GDrawLines(GC , Window , XPoint * , int , int , int ); extern int GDrawPoint(Window , GC , int , int , int ); -extern int GDrawString(GC , Window , int , int , char * , int , int ); +extern int GDrawString(GC , Window , int , int , const char* , int , int ); extern int GFillArc(GC , Window , int , int , unsigned int , unsigned int , int , int , int ); extern int PSGlobalInit(void ); extern int PSInit(Window , Window ); -extern int PSCreateContext(GC , char * , int , int , int , float , float ); +extern int PSCreateContext(GC , const char* , int , int , int , float , float ); extern char * PSfindGC(GC ); extern int GSetForeground(GC , float , int ); extern int GSetBackground(GC , float , int ); extern int GSetLineAttributes(GC , int , int , int , int , int ); extern int PSClose(void ); -extern int centerX(GC , char * , int , int ); +extern int centerX(GC , const char* , int , int ); extern int centerY(GC , int ); extern int PSColorPolygon(float , float , float , XPoint * , int ); extern int PSColorwOutline(float , float , float , XPoint * , int ); @@ -30,7 +30,8 @@ extern void XDeleteAssoc(Display * , HashTable * , Window ); extern int GDrawRectangle(GC , Window , short , short , short , short , int ); extern int GDraw3DButtonOut(GC , Window , short , short , short , short , int ); extern int GDraw3DButtonIn(GC , Window , short , short , short , short , int ); -extern int GDrawPushButton(Display * , GC , GC , GC , Window , short , short , short , short , int , char * , unsigned long , unsigned long , int ); +extern int GDrawPushButton(Display * , GC , GC , GC , Window , short , +short , short , short , int , const char* , unsigned long , unsigned long , int ); #ifdef _GFUN_C static void filecopy(FILE * , FILE * ); static int TrivEqual(Window , Window ); diff --git a/src/graph/include/bitmaps/spad11.bitmap b/src/graph/include/bitmaps/spad11.bitmap index 0be6b15d..d2af8427 100644 --- a/src/graph/include/bitmaps/spad11.bitmap +++ b/src/graph/include/bitmaps/spad11.bitmap @@ -1,6 +1,6 @@ #define spadBitmap_width 30 #define spadBitmap_height 16 -static char spadBitmap_bits[] = { +static const char spadBitmap_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x20, 0x00, 0x00, 0x12, 0x70, 0x00, 0x00, 0x12, 0x20, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0xa8, 0x39, 0xb7, 0x1d, 0x24, 0xa6, 0x59, 0x12, diff --git a/src/graph/include/bitmaps/spad11.mask b/src/graph/include/bitmaps/spad11.mask index 05329be6..e8c7882d 100644 --- a/src/graph/include/bitmaps/spad11.mask +++ b/src/graph/include/bitmaps/spad11.mask @@ -2,7 +2,7 @@ #define spad11_height 16 #define spad11_x_hot -1 #define spad11_y_hot -1 -static char spad11_bits[] = { +static const char spad11_bits[] = { 0x00, 0x20, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xac, 0x39, 0xb6, 0x1d, 0x32, 0x26, 0x49, 0x12, 0x21, 0xa6, 0x50, 0x12, 0x21, 0xa6, 0x50, 0x12, diff --git a/src/graph/include/purty/slicer.bitmap b/src/graph/include/purty/slicer.bitmap index 6f871847..0fb13785 100644 --- a/src/graph/include/purty/slicer.bitmap +++ b/src/graph/include/purty/slicer.bitmap @@ -5,7 +5,7 @@ #else #define slicer_height 100 #endif -static char slicer_bits[] = { +static const char slicer_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xff, 0xff, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, diff --git a/src/graph/include/purty/spadBitmap.bitmap b/src/graph/include/purty/spadBitmap.bitmap index f8b9d7d8..dfb3cce8 100644 --- a/src/graph/include/purty/spadBitmap.bitmap +++ b/src/graph/include/purty/spadBitmap.bitmap @@ -2,7 +2,7 @@ #define spadBitmap_height 20 #define spadBitmap_x_hot 15 #define spadBitmap_y_hot 10 -static char spadBitmap_bits[] = { +static const char spadBitmap_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, diff --git a/src/graph/include/purty/spadMask.mask b/src/graph/include/purty/spadMask.mask index 40954629..21ba6a89 100644 --- a/src/graph/include/purty/spadMask.mask +++ b/src/graph/include/purty/spadMask.mask @@ -2,7 +2,7 @@ #define spadMask_height 20 #define spadMask_x_hot 15 #define spadMask_y_hot 10 -static char spadMask_bits[] = { +static const char spadMask_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x00, 0xe0, 0x03, 0x00, 0x00, 0x00, 0xe0, 0x03, 0x00, 0x00, 0x00, 0xe0, 0x03, 0x00, 0x00, 0xfc, 0xff, 0xff, 0xff, 0x01, 0xfe, diff --git a/src/graph/include/spadBitmap.bitmap b/src/graph/include/spadBitmap.bitmap index f8b9d7d8..dfb3cce8 100644 --- a/src/graph/include/spadBitmap.bitmap +++ b/src/graph/include/spadBitmap.bitmap @@ -2,7 +2,7 @@ #define spadBitmap_height 20 #define spadBitmap_x_hot 15 #define spadBitmap_y_hot 10 -static char spadBitmap_bits[] = { +static const char spadBitmap_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, diff --git a/src/graph/include/spadMask.mask b/src/graph/include/spadMask.mask index 40954629..21ba6a89 100644 --- a/src/graph/include/spadMask.mask +++ b/src/graph/include/spadMask.mask @@ -2,7 +2,7 @@ #define spadMask_height 20 #define spadMask_x_hot 15 #define spadMask_y_hot 10 -static char spadMask_bits[] = { +static const char spadMask_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x00, 0xe0, 0x03, 0x00, 0x00, 0x00, 0xe0, 0x03, 0x00, 0x00, 0x00, 0xe0, 0x03, 0x00, 0x00, 0xfc, 0xff, 0xff, 0xff, 0x01, 0xfe, diff --git a/src/graph/include/viewport2D.H1 b/src/graph/include/viewport2D.H1 index 55163d03..5d41df84 100644 --- a/src/graph/include/viewport2D.H1 +++ b/src/graph/include/viewport2D.H1 @@ -1,5 +1,5 @@ extern void writeTitle(void); extern void drawTheViewport(int ); -extern viewPoints * makeViewport(char * , int , int , int , int , int ); +extern viewPoints * makeViewport(const char* , int , int , int , int , int ); extern viewPoints * makeView2D(view2DStruct * ); |