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