Lines Matching defs:tmp
77 double tmp;
79 tmp = x - canvasPtr->drawableXOrigin;
80 if (tmp > 0) {
81 tmp += 0.5;
83 tmp -= 0.5;
85 if (tmp > 32767) {
87 } else if (tmp < -32768) {
90 *drawableXPtr = tmp;
93 tmp = y - canvasPtr->drawableYOrigin;
94 if (tmp > 0) {
95 tmp += 0.5;
97 tmp -= 0.5;
99 if (tmp > 32767) {
101 } else if (tmp < -32768) {
104 *drawableYPtr = tmp;
138 double tmp;
140 tmp = x - canvasPtr->xOrigin;
141 if (tmp > 0) {
142 tmp += 0.5;
144 tmp -= 0.5;
146 if (tmp > 32767) {
148 } else if (tmp < -32768) {
151 *screenXPtr = tmp;
154 tmp = y - canvasPtr->yOrigin;
155 if (tmp > 0) {
156 tmp += 0.5;
158 tmp -= 0.5;
160 if (tmp > 32767) {
162 } else if (tmp < -32768) {
165 *screenYPtr = tmp;