[PATCH] [mouse] show correct geometry on resize (FS#203)

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Michael Gehring 2008-06-03 14:24:25 +02:00 committed by Julien Danjou
parent 3b6cddbef2
commit d8e4fe9d3f
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ mouse_resizebar_draw(DrawCtx *ctx, style_t style, SimpleWindow *sw, area_t geome
char size[64]; char size[64];
snprintf(size, sizeof(size), "%dx%d+%d+%d", snprintf(size, sizeof(size), "%dx%d+%d+%d",
geometry.x, geometry.y, geometry.width, geometry.height); geometry.width, geometry.height, geometry.x, geometry.y);
draw_text(ctx, draw_geometry, AlignCenter, style.font->height / 2, size, style); draw_text(ctx, draw_geometry, AlignCenter, style.font->height / 2, size, style);
simplewindow_move(sw, simplewindow_move(sw,
geometry.x + ((2 * border + geometry.width) - sw->geometry.width) / 2, geometry.x + ((2 * border + geometry.width) - sw->geometry.width) / 2,