Lines Matching refs: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++)
600 (BW->bitmap.hot.y == max(BW->bitmap.mark.from_y,\
609 Position from_x, from_y, to_x, to_y;
613 from_y = BW->bitmap.mark.from_y;
619 from_y = 0;
624 if ((to_y - from_y) == 0)
629 for(y = to_y - 1; y >= from_y; y--) {
655 Position from_x, from_y, to_x, to_y;
659 from_y = BW->bitmap.mark.from_y;
665 from_y = 0;
670 if ((to_y - from_y) == 0)
674 first = down = GetBit(BW->bitmap.image, x, from_y);
675 for(y = from_y + 1; y <= to_y; y++) {
682 InvertPoint(BW, x, from_y);
699 Position from_x, from_y, to_x, to_y;
703 from_y = BW->bitmap.mark.from_y;
709 from_y = 0;
717 for(y = from_y; y <= to_y; y++) {
744 Position from_x, from_y, to_x, to_y;
748 from_y = BW->bitmap.mark.from_y;
754 from_y = 0;
762 for(y = from_y; y <= to_y; y++) {
900 Position from_x, from_y, to_x, to_y;
905 from_y = BW->bitmap.mark.from_y;
911 from_y = 0;
915 half = (float) (to_y - from_y) / 2.0 + 0.5;
922 if (GetBit(BW->bitmap.image, x, from_y + y) !=
924 InvertPoint(BW, x, from_y + y);
941 Position from_x, from_y, to_x, to_y;
946 from_y = BW->bitmap.mark.from_y;
952 from_y = 0;
961 for (y = from_y; y <= to_y; y++)
986 Position from_x, from_y, to_x, to_y;
990 from_y = BW->bitmap.mark.from_y;
996 from_y = 0;
1002 half_height = floor((to_y - from_y ) / 2.0 + 0.5);
1003 shift = min((Position)(to_x - from_x), (Position)(to_y - from_y )) % 2;
1010 from_y + (Position)half_height + y);
1013 from_y + (Position)half_height - shift - x);
1016 from_y + (Position)half_height - shift - y);
1019 from_y + (Position)half_height + x);
1024 from_y + (Position)half_height + y);
1028 from_y + (Position)half_height - shift - x);
1032 from_y + (Position)half_height - shift - y);
1036 from_y + (Position)half_height + x);
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);
1144 Position from_x, Position from_y,
1151 delta_y = to_y - from_y + 1;
1155 if (GetBit(source, from_x + x, from_y + y))
1199 if (QuerySet(BW->bitmap.mark.from_x, BW->bitmap.mark.from_y)) {
1204 height = BW->bitmap.mark.to_y - BW->bitmap.mark.from_y + 1;
1213 BW->bitmap.mark.from_x, BW->bitmap.mark.from_y,
1224 if (QuerySet(BW->bitmap.mark.from_x, BW->bitmap.mark.from_y))
1227 BW->bitmap.mark.from_y,
1239 if (QuerySet(BW->bitmap.mark.from_x, BW->bitmap.mark.from_y))
1243 at_y + BW->bitmap.mark.to_y - BW->bitmap.mark.from_y,
1306 if (QuerySet(BW->bitmap.mark.from_x, BW->bitmap.mark.from_y)) {
1309 height = BW->bitmap.mark.to_y - BW->bitmap.mark.from_y + 1;
1316 BW->bitmap.mark.from_x, BW->bitmap.mark.from_y,
1336 if (QuerySet(BW->bitmap.mark.from_x, BW->bitmap.mark.from_y)) {
1339 height = BW->bitmap.mark.to_y - BW->bitmap.mark.from_y + 1;
1346 BW->bitmap.mark.from_x, BW->bitmap.mark.from_y,
1351 BW->bitmap.mark.from_x, BW->bitmap.mark.from_y,
1359 at_y + BW->bitmap.mark.to_y - BW->bitmap.mark.from_y);
1370 if (QuerySet(BW->bitmap.mark.from_x, BW->bitmap.mark.from_y))
1373 InWindowY(BW, BW->bitmap.mark.from_y),
1377 InWindowY(BW, BW->bitmap.mark.from_y));
1399 if (QuerySet(BW->bitmap.mark.from_x, BW->bitmap.mark.from_y)) {
1402 InWindowY(BW, BW->bitmap.mark.from_y),
1406 InWindowY(BW, BW->bitmap.mark.from_y));
1408 BW->bitmap.mark.from_x = BW->bitmap.mark.from_y = NotSet;
1414 BWMark(Widget w, Position from_x, Position from_y,
1421 if (QuerySet(from_x, from_y)) {
1422 if ((from_x == to_x) && (from_y == to_y)) {
1425 BW->bitmap.mark.from_y = 0;
1433 QuerySwap(from_y, to_y);
1435 from_y = max(0, from_y);
1440 BW->bitmap.mark.from_y = from_y;
1447 InWindowY(BW, BW->bitmap.mark.from_y),
1451 InWindowY(BW, BW->bitmap.mark.from_y));
1486 BWMark(w, BW->bitmap.buffer_mark.from_x, BW->bitmap.buffer_mark.from_y,