Lines Matching defs:from_y
249 Position from_y = InBitmapY(BW, y);
254 QuerySwap(from_y, to_y);
256 from_y = max(0, from_y);
261 for (y = from_y; y <= to_y; y++)
267 Position from_x, Position from_y,
274 QuerySwap(from_y, to_y);
276 from_y = max(0, from_y);
283 InWindowX(BW, i), InWindowY(BW, from_y),
286 for(i = from_y + (from_y == 0); i <= to_y; i++)
301 Position from_y = InBitmapY(BW, y);
306 BWDrawGrid(w, from_x, from_y, to_x, to_y);
311 Position from_x, Position from_y,
319 dy = to_y - from_y;
321 y = from_y + 0.5;
333 BWDrawPoint(w, from_x, from_y, value);
338 Position from_x, Position from_y,
346 dy = to_y - from_y;
348 y = from_y + 0.5;
362 BWDrawPoint(w, from_x, from_y, value);
367 Position from_x, Position from_y,
374 QuerySwap(from_y, to_y);
377 height = to_y - from_y;
384 BWDrawPoint(w, from_x + i, from_y, value);
389 BWDrawPoint(w, to_x, from_y + i, value);
395 from_x, from_y,
401 Position from_x, Position from_y,
407 QuerySwap(from_y, to_y);
410 for (y = from_y; y <= to_y; y++)
604 (BW->bitmap.hot.y == max(BW->bitmap.mark.from_y,\
620 Position from_x, from_y, to_x, to_y;
624 from_y = BW->bitmap.mark.from_y;
630 from_y = 0;
635 if ((to_y - from_y) == 0)
640 for(y = to_y - 1; y >= from_y; y--) {
673 Position from_x, from_y, to_x, to_y;
677 from_y = BW->bitmap.mark.from_y;
683 from_y = 0;
688 if ((to_y - from_y) == 0)
692 first = down = GetBit(BW->bitmap.image, x, from_y);
693 for(y = from_y + 1; y <= to_y; y++) {
700 InvertPoint(BW, x, from_y);
724 Position from_x, from_y, to_x, to_y;
728 from_y = BW->bitmap.mark.from_y;
734 from_y = 0;
742 for(y = from_y; y <= to_y; y++) {
776 Position from_x, from_y, to_x, to_y;
780 from_y = BW->bitmap.mark.from_y;
786 from_y = 0;
794 for(y = from_y; y <= to_y; y++) {
968 Position from_x, from_y, to_x, to_y;
973 from_y = BW->bitmap.mark.from_y;
979 from_y = 0;
983 half = (float) (to_y - from_y) / 2.0 + 0.5;
990 if (GetBit(BW->bitmap.image, x, from_y + y) !=
992 InvertPoint(BW, x, from_y + y);
1016 Position from_x, from_y, to_x, to_y;
1021 from_y = BW->bitmap.mark.from_y;
1027 from_y = 0;
1036 for (y = from_y; y <= to_y; y++)
1068 Position from_x, from_y, to_x, to_y;
1072 from_y = BW->bitmap.mark.from_y;
1078 from_y = 0;
1084 half_height = floor((to_y - from_y ) / 2.0 + 0.5);
1085 shift = min((Position)(to_x - from_x), (Position)(to_y - from_y )) % 2;
1092 from_y + (Position)half_height + y);
1095 from_y + (Position)half_height - shift - x);
1098 from_y + (Position)half_height - shift - y);
1101 from_y + (Position)half_height + x);
1106 from_y + (Position)half_height + y);
1110 from_y + (Position)half_height - shift - x);
1114 from_y + (Position)half_height - shift - y);
1118 from_y + (Position)half_height + x);
1157 Position from_x, from_y, to_x, to_y;
1161 from_y = BW->bitmap.mark.from_y;
1167 from_y = 0;
1173 half_height = floor((to_y - from_y ) / 2.0 + 0.5);
1174 shift = min((Position)(to_x - from_x), (Position)(to_y - from_y )) % 2;
1181 from_y + (Position)half_height + y);
1184 from_y + (Position)half_height - shift - x);
1187 from_y + (Position)half_height - shift - y);
1190 from_y + (Position)half_height + x);
1195 from_y + (Position)half_height + y);
1199 from_y + (Position)half_height - shift - x);
1203 from_y + (Position)half_height - shift - y);
1207 from_y + (Position)half_height + x);
1233 Position from_x, Position from_y,
1240 delta_y = to_y - from_y + 1;
1244 if (GetBit(source, from_x + x, from_y + y))
1288 if (QuerySet(BW->bitmap.mark.from_x, BW->bitmap.mark.from_y)) {
1293 height = BW->bitmap.mark.to_y - BW->bitmap.mark.from_y + 1;
1302 BW->bitmap.mark.from_x, BW->bitmap.mark.from_y,
1313 if (QuerySet(BW->bitmap.mark.from_x, BW->bitmap.mark.from_y))
1316 BW->bitmap.mark.from_y,
1328 if (QuerySet(BW->bitmap.mark.from_x, BW->bitmap.mark.from_y))
1332 at_y + BW->bitmap.mark.to_y - BW->bitmap.mark.from_y,
1395 if (QuerySet(BW->bitmap.mark.from_x, BW->bitmap.mark.from_y)) {
1398 height = BW->bitmap.mark.to_y - BW->bitmap.mark.from_y + 1;
1405 BW->bitmap.mark.from_x, BW->bitmap.mark.from_y,
1425 if (QuerySet(BW->bitmap.mark.from_x, BW->bitmap.mark.from_y)) {
1428 height = BW->bitmap.mark.to_y - BW->bitmap.mark.from_y + 1;
1435 BW->bitmap.mark.from_x, BW->bitmap.mark.from_y,
1440 BW->bitmap.mark.from_x, BW->bitmap.mark.from_y,
1448 at_y + BW->bitmap.mark.to_y - BW->bitmap.mark.from_y);
1459 if (QuerySet(BW->bitmap.mark.from_x, BW->bitmap.mark.from_y))
1462 InWindowY(BW, BW->bitmap.mark.from_y),
1466 InWindowY(BW, BW->bitmap.mark.from_y));
1495 if (QuerySet(BW->bitmap.mark.from_x, BW->bitmap.mark.from_y)) {
1498 InWindowY(BW, BW->bitmap.mark.from_y),
1502 InWindowY(BW, BW->bitmap.mark.from_y));
1504 BW->bitmap.mark.from_x = BW->bitmap.mark.from_y = NotSet;
1510 BWMark(Widget w, Position from_x, Position from_y,
1517 if (QuerySet(from_x, from_y)) {
1518 if ((from_x == to_x) && (from_y == to_y)) {
1521 BW->bitmap.mark.from_y = 0;
1529 QuerySwap(from_y, to_y);
1531 from_y = max(0, from_y);
1536 BW->bitmap.mark.from_y = from_y;
1543 InWindowY(BW, BW->bitmap.mark.from_y),
1547 InWindowY(BW, BW->bitmap.mark.from_y));
1589 BWMark(w, BW->bitmap.buffer_mark.from_x, BW->bitmap.buffer_mark.from_y,