Make sure large key does not overlap with the small key.

This commit is contained in:
Daiki Ueno
2011-08-15 18:12:17 +09:00
parent 7919cc191e
commit 55f7a0d0dc

View File

@ -419,7 +419,7 @@ magnify_bounds (GtkWidget *self,
large_bounds->height = bounds->height * scale; large_bounds->height = bounds->height * scale;
x = bounds->x - (large_bounds->width - bounds->width) / 2; x = bounds->x - (large_bounds->width - bounds->width) / 2;
y = bounds->y - large_bounds->height + bounds->height / 2; y = bounds->y - large_bounds->height;
large_bounds->x = CLAMP(x, 0, allocation.width - large_bounds->width); large_bounds->x = CLAMP(x, 0, allocation.width - large_bounds->width);
large_bounds->y = CLAMP(y, 0, allocation.height - large_bounds->height); large_bounds->y = CLAMP(y, 0, allocation.height - large_bounds->height);