Lines Matching defs:sy
30 #define SWAP_START_END(sx, sy, ex, ey, dx, dy, dir) \
33 if ((sy) > (ey)) { \
34 SWAP_POINTS((sx), (ex), (sy), (ey)); \
41 SWAP_POINTS((sx), (ex), (sy), (ey)); \
43 if ((ey) < (sy)) { \
153 int16_t sy = start.y;
157 uint16_t dy = MATH_ABS(ey - sy);
159 SWAP_START_END(sx, sy, ex, ey, dx, dy, dir);
162 float plot = -static_cast<float>(ex - sx) / static_cast<float>(ey - sy);
166 float y0 = sy + (x0 - sx) * plot;
168 float y1 = sy + (x1 - sx) * plot;
249 sy = y0Int;
255 if (sy - y0Int < MAX_LINE_WIDTH) {
256 endPoints0[sy - y0Int] = sx;
258 sy++;
261 drawUtils->DrawPixelInLine(gfxDstBuffer, sx, sy, mask, color, opacity,
264 if (sy - y0Int < MAX_LINE_WIDTH) {
265 endPoints0[sy - y0Int] = sx - dir;
271 sy = y3Int;
281 sy--;
284 drawUtils->DrawPixelInLine(gfxDstBuffer, sx, sy, mask, color, opacity,
299 sy = y0Int + 1;
306 if (sy <= y1Int) {
308 drawUtils->DrawPixelInLine(gfxDstBuffer, sx + dir, sy, mask,
314 } else if (sy < y2Int) {
317 drawUtils->DrawPixelInLine(gfxDstBuffer, sx + dir, sy, mask,
319 drawUtils->DrawPixelInLine(gfxDstBuffer, sxTemp, sy, mask, color, opacity,
323 } else if (sy < y3Int) {
325 drawUtils->DrawPixelInLine(gfxDstBuffer, sxTemp, sy, mask, color, opacity,
335 rect.SetRect(edge0, sy, edge1, sy);
337 sy++;
347 sy = y0Int;
348 drawUtils->DrawPixel(gfxDstBuffer, sx, sy, mask, color, opacity);
354 endPoints0[x0Int - sx] = sy;
358 sy -= dir;
359 drawUtils->DrawPixelInLine(gfxDstBuffer, sx, sy, mask, color, opacity,
363 endPoints0[x0Int - sx] = sy - dir;
369 sy = y3Int;
376 endPoints1[temp1++] = sy;
380 sy += dir;
381 drawUtils->DrawPixelInLine(gfxDstBuffer, sx, sy, mask, color, opacity,
386 endPoints1[temp1++] = sy + dir;
397 sy = y0Int;
405 INCREASE_ACC(acc0, accTemp0, adj0, sy, dir);
406 drawUtils->DrawPixelInLine(gfxDstBuffer, sx, sy + dir, mask,
411 edge1 = sy;
413 INCREASE_ACC(acc0, accTemp0, adj0, sy, dir);
415 drawUtils->DrawPixelInLine(gfxDstBuffer, sx, sy + dir, mask,
420 edge1 = sy;
444 int16_t sy = start.y;
448 uint16_t dy = MATH_ABS(ey - sy);
453 SWAP_START_END(sx, sy, ex, ey, dx, dy, dir);
459 sy++;
461 drawUtils->DrawAdjPixelInLine(gfxDstBuffer, sx, sy, sx + dir, sy, mask,
464 drawUtils->DrawVerPixelInLine(gfxDstBuffer, sx, sy, dir, mask,
471 INCREASE_ACC(acc, accTemp, adj, sy, dir);
474 drawUtils->DrawAdjPixelInLine(gfxDstBuffer, sx, sy, sx, sy + dir, mask,
477 drawUtils->DrawHorPixelInLine(gfxDstBuffer, sx, sy, dir, mask,