Portál AbcLinuxu, 17. července 2025 18:33
--- fvwm-2.5.12.rubberband/fvwm/move_resize.c 2004-09-27 11:33:04.000000000 +0200 +++ fvwm-2.5.12/fvwm/move_resize.c 2004-11-13 19:56:41.460960273 +0100 @@ -121,56 +121,12 @@ static void draw_move_resize_grid(int x, static int get_outline_rects( XRectangle *rects, int x, int y, int width, int height) { - int i; - int n; - int m; - - n = 3; - m = (width - 5) / 2; - if (m < n) - { - n = m; - } - m = (height - 5) / 2; - if (m < n) - { - n = m; - } - if (n < 1) - { - n = 1; - } + rects[0].x = x; + rects[0].y = y; + rects[0].width = width; + rects[0].height = height; - for (i = 0; i < n; i++) - { - rects[i].x = x + i; - rects[i].y = y + i; - rects[i].width = width - (i << 1); - rects[i].height = height - (i << 1); - } - if (width - (n << 1) >= 5 && height - (n << 1) >= 5) - { - if (width - (n << 1) >= 10) - { - int off = (width - (n << 1)) / 3 + n; - rects[i].x = x + off; - rects[i].y = y + n; - rects[i].width = width - (off << 1); - rects[i].height = height - (n << 1); - i++; - } - if (height - (n << 1) >= 10) - { - int off = (height - (n << 1)) / 3 + n; - rects[i].x = x + n; - rects[i].y = y + off; - rects[i].width = width - (n << 1); - rects[i].height = height - (off << 1); - i++; - } - } - - return i; + return 1; } struct
patching file fvwm-2.5.12/fvwm/move_resize.c Hunk #1 FAILED at 121. 1 out of 1 hunk FAILED -- saving rejects to file fvwm-2.5.12/fvwm/move_resize.c.rejNejsem v patchování moc zběhlý, tak nevím, co to znamená, docela by mě to zajímalo. Ale jinak mi to už chodí, prostě jsem to v tom souboru přepsal ručně, ono toho moc nebylo
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.