aboutsummaryrefslogtreecommitdiff
path: root/src/graph/Gdraws/Gfun.c
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2012-08-26 20:27:00 +0000
committerdos-reis <gdr@axiomatics.org>2012-08-26 20:27:00 +0000
commit50731b6737c4ec7ef2f5be7eca44a5e7692d305a (patch)
tree9ca4458f507b8ef9bb4141b450e6708f523c5e26 /src/graph/Gdraws/Gfun.c
parent5d206512273e528a4b3c863a7556f26f8c1c59de (diff)
downloadopen-axiom-50731b6737c4ec7ef2f5be7eca44a5e7692d305a.tar.gz
* graph/Gdraws/Gfun.c (GDrawLine): Make string parameter of type
const char*. (GDrawPushButton): Likewise. (GDrawString): Likewise. (PSCreateContext): Likewise. (centerX): Likewise. * Makefile.am (all-graph): Require all-utils.
Diffstat (limited to 'src/graph/Gdraws/Gfun.c')
-rw-r--r--src/graph/Gdraws/Gfun.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/graph/Gdraws/Gfun.c b/src/graph/Gdraws/Gfun.c
index 07237838..e931b0ad 100644
--- a/src/graph/Gdraws/Gfun.c
+++ b/src/graph/Gdraws/Gfun.c
@@ -246,7 +246,7 @@ GDrawImageString(
GC gc, /* graphics context */
Window wid, /* window id */
int x, int y,
- char *string,
+ const char* string,
int length, int dFlag)
{
int s;
@@ -562,7 +562,7 @@ GDrawPushButton(
GC gc1, GC gc2, GC gc3,
Window windowId,
short int x,short int y,short int width,short int height,
- int isOn, char *text,
+ int isOn, const char *text,
unsigned long buttonColor, unsigned long color,
int dFlag)
{
@@ -597,7 +597,7 @@ GDrawString(
GC gc, /* graphics context */
Window wid, /* window id */
int x, int y,
- char *string, /* string to be drawn */
+ const char* string, /* string to be drawn */
int length, int dFlag)
{
int s;
@@ -827,7 +827,7 @@ PSInit(Window vw, Window tw)
int
PSCreateContext(
GC gc, /* graphics context */
- char *C_gc, /* GC name to be used as postscript variable */
+ const char *C_gc, /* GC name to be used as postscript variable */
int lineWidth, int capStyle, int joinStyle,
float bg, float fg)
{
@@ -1074,7 +1074,7 @@ PSClose(void)
int
-centerX (GC viewGCx,char * theString,int strlength,int windowWidth)
+centerX (GC viewGCx, const char* theString,int strlength,int windowWidth)
{
XFontStruct *fontStruct;
GContext con;