1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00
freebsd-ports/cad/z88/files/patch-cb88o.c
Martin Wilke ab73c91604 - Update to 13.0
PR:		143066
Submitted by:	"Pedro F. Giffuni" <giffunip@tutopia.com>
2010-02-08 15:03:19 +00:00

38 lines
1.5 KiB
C

--- cb88o.c.orig 2010-01-19 10:23:29.000000000 +0000
+++ cb88o.c 2010-01-19 10:28:02.000000000 +0000
@@ -1161,9 +1161,9 @@
/*---------------------------------------------------------------------------
* beim allerersten Start gehen fux, fuy & fuz mit je 100. rein
*--------------------------------------------------------------------------*/
-gcvt(fux,idigit,cfux);
-gcvt(fuy,idigit,cfuy);
-gcvt(fuz,idigit,cfuz);
+snprintf(cfux, idigit, "%g", fux);
+snprintf(cfuy, idigit, "%g", fuy);
+snprintf(cfuz, idigit, "%g",cfuz);
if(LANG == 1) strcpy(cstring,"VERGROESSERUNG VER.");
if(LANG == 2) strcpy(cstring,"MAGNIFICATION DEFL.");
@@ -1231,9 +1231,9 @@
/*---------------------------------------------------------------------------
* beim allerersten Start gehen rotx, roty & rotz mit je 0. rein
*--------------------------------------------------------------------------*/
-gcvt(rotx,idigit,crotx);
-gcvt(roty,idigit,croty);
-gcvt(rotz,idigit,crotz);
+snprintf(crotx, idigit, "%g", rotx);
+snprintf(croty, idigit, "%g", roty);
+snprintf(crotz, idigit, "%g", rotz);
if(LANG == 1) strcpy(cstring,"ROTATIONEN 3-D");
if(LANG == 2) strcpy(cstring,"ROTATIONS 3-D");
@@ -1306,7 +1306,7 @@
/*---------------------------------------------------------------------------
* beim allerersten Start geht zm mit -100. rein
*--------------------------------------------------------------------------*/
-gcvt(zm,idigit,czm);
+snprintf(czm, idigit, "%g", zm);
if(LANG == 1) strcpy(cstring,"Z-Limit zum Betrachter");
if(LANG == 2) strcpy(cstring,"Z Limit towards you");