Commit 157fd5bb authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

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.
parent e09ee5e5
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.
2005-06-05 Sven Neumann <sven@gimp.org>
* app/widgets/gimpcoloreditor.c
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment