Diff for dead/diplomovka/xgrafix/src/xgcrosshair.c between version 1.1 and 1.2
| version 1.1, 2001/09/20 14:12:00 |
version 1.2, 2002/07/07 23:57:58 |
| Line 36 int C_UpdateCrosshairProc(ClientData cl, |
|
| Line 36 int C_UpdateCrosshairProc(ClientData cl, |
|
| else |
else |
| yCoord=y * theCrosshairmy + theCrosshairby; |
yCoord=y * theCrosshairmy + theCrosshairby; |
| |
|
| sprintf(TclCommand,"%g %g\n",xCoord,yCoord); |
if (snprintf(TclCommand, TclCommand_MAX, "%g %g\n", xCoord, yCoord) == -1) { |
| |
fprintf(stderr, "Warning: TclCommand truncated at %s:%d\n", __FILE__, __LINE__); |
| |
} |
| interp->result=TclCommand; |
interp->result=TclCommand; |
| return TCL_OK; |
return TCL_OK; |
| } // }}} |
} // }}} |
Platon Group <platon@platon.org> http://platon.org/
|
|