summaryrefslogtreecommitdiff
path: root/iup/src/iup_canvas.c
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2010-06-15 00:59:57 -0700
committerPixel <pixel@nobis-crew.org>2010-06-15 00:59:57 -0700
commiteed0eb6a476d54ce19aeff137984aa981d9e3976 (patch)
tree807891636efd2f87dcbd261e971216269973ae07 /iup/src/iup_canvas.c
parentccc8261e4d48de89da4ddfe7b55e378ae0cd6f47 (diff)
Upgrading to iup 3.1
Diffstat (limited to 'iup/src/iup_canvas.c')
-rwxr-xr-xiup/src/iup_canvas.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iup/src/iup_canvas.c b/iup/src/iup_canvas.c
index 5eda988..46fefd9 100755
--- a/iup/src/iup_canvas.c
+++ b/iup/src/iup_canvas.c
@@ -55,14 +55,14 @@ void iupCanvasCalcScrollRealPos(double min, double max, double *pos,
char* iupCanvasGetPosXAttrib(Ihandle* ih)
{
char* str = iupStrGetMemory(20);
- sprintf(str, "%f", ih->data->posx);
+ sprintf(str, "%g", ih->data->posx);
return str;
}
char* iupCanvasGetPosYAttrib(Ihandle* ih)
{
char* str = iupStrGetMemory(20);
- sprintf(str, "%f", ih->data->posy);
+ sprintf(str, "%g", ih->data->posy);
return str;
}