if the area is larger than the brush, center the brush.

2005-06-05  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpviewrendererbrush.c
	(gimp_view_renderer_brush_render_timeout): if the area is larger
	than the brush, center the brush.
This commit is contained in:
Sven Neumann
2005-06-05 00:03:24 +00:00
committed by Sven Neumann
parent e09ee5e501
commit 157fd5bbca
2 changed files with 12 additions and 0 deletions

View File

@ -344,6 +344,12 @@ gimp_view_renderer_brush_render_timeout (gpointer data)
renderer->width,
renderer->height);
if (temp_buf->width < renderer->width)
temp_buf->x = (renderer->width - temp_buf->width) / 2;
if (temp_buf->height < renderer->height)
temp_buf->y = (renderer->height - temp_buf->height) / 2;
gimp_view_renderer_render_buffer (renderer, temp_buf, -1,
GIMP_VIEW_BG_WHITE,
GIMP_VIEW_BG_WHITE);