diff options
Diffstat (limited to 'src/graph/view3D/volume3d.c')
-rw-r--r-- | src/graph/view3D/volume3d.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/graph/view3D/volume3d.c b/src/graph/view3D/volume3d.c index 348a39d6..87bce529 100644 --- a/src/graph/view3D/volume3d.c +++ b/src/graph/view3D/volume3d.c @@ -698,7 +698,7 @@ void drawVolumePanel (void) { - int i,strlength; + size_t i,strlength; /* Draw some lines for volume panel. */ @@ -733,13 +733,16 @@ drawVolumePanel (void) 100,100,Xoption); - for (i=0; i<strlen(clipMess); i++) + strlength = strlen(clipMess); + for (i=0; i<strlength; i++) GDrawString(trashGC,volumeWindow,clipMessX,clipMessY + i*clipMessDy, &(clipMess[i]),1,Xoption); - for (i=0; i<strlen(eyeMess1); i++) + strlength = strlen(eyeMess1); + for (i=0; i<strlength; i++) GDrawString(trashGC,volumeWindow,eyeMess1X,eyeMess1Y + i*eyeMess1Dy, &(eyeMess1[i]),1,Xoption); - for (i=0; i<strlen(eyeMess2); i++) + strlength = strlen(eyeMess2); + for (i=0; i<strlength; i++) GDrawString(trashGC,volumeWindow,eyeMess2X,eyeMess2Y + i*eyeMess2Dy, &(eyeMess2[i]),1,Xoption); |