… | |
… | |
1600 | } |
1600 | } |
1601 | |
1601 | |
1602 | scroll_selection_lines = Pixel2Height (dist) |
1602 | scroll_selection_lines = Pixel2Height (dist) |
1603 | / SELECTION_SCROLL_LINE_SPEEDUP |
1603 | / SELECTION_SCROLL_LINE_SPEEDUP |
1604 | + 1; |
1604 | + 1; |
1605 | MIN_IT (scroll_selection_lines, |
1605 | min_it (scroll_selection_lines, |
1606 | SELECTION_SCROLL_MAX_LINES); |
1606 | SELECTION_SCROLL_MAX_LINES); |
1607 | } |
1607 | } |
1608 | else |
1608 | else |
1609 | { |
1609 | { |
1610 | /* we are within the text window, so we |
1610 | /* we are within the text window, so we |
… | |
… | |
2451 | nh += sy; |
2451 | nh += sy; |
2452 | ny = -sy; |
2452 | ny = -sy; |
2453 | sy = 0; |
2453 | sy = 0; |
2454 | } |
2454 | } |
2455 | |
2455 | |
2456 | MIN_IT (nw, (unsigned int) (wrootattr.width - sx)); |
2456 | min_it (nw, (unsigned int) (wrootattr.width - sx)); |
2457 | MIN_IT (nh, (unsigned int) (wrootattr.height - sy)); |
2457 | min_it (nh, (unsigned int) (wrootattr.height - sy)); |
2458 | |
2458 | |
2459 | XSync (disp, False); |
2459 | XSync (disp, False); |
2460 | allowedxerror = -1; |
2460 | allowedxerror = -1; |
2461 | image = XGetImage (disp, rootpixmap, sx, sy, nw, nh, AllPlanes, ZPixmap); |
2461 | image = XGetImage (disp, rootpixmap, sx, sy, nw, nh, AllPlanes, ZPixmap); |
2462 | |
2462 | |