Commit 5fb6dde5 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

fixed a bug spotted by Jim Meyer (#97911) and added a missing call to

2002-11-07  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpbrushpreview.c
	(gimp_brush_preview_render_timeout_func): fixed a bug spotted
	by Jim Meyer (#97911) and added a missing call to
	gtk_widget_queue_draw().
parent 4544c475
2002-11-07 Sven Neumann <sven@gimp.org>
* app/widgets/gimpbrushpreview.c
(gimp_brush_preview_render_timeout_func): fixed a bug spotted
by Jim Meyer (#97911) and added a missing call to
gtk_widget_queue_draw().
2002-11-07 Sven Neumann <sven@gimp.org>
 
* HACKING: mention the automake-1.6 requirement.
......
......@@ -26,7 +26,7 @@ Overview of Changes in GIMP 1.3.10
Other contributors:
Maurits Rijk, Michael Niedermayer, Garry R. Osgood, David Necas,
Toby Smith, Raphael Quinet, Dave Neary
Toby Smith, Raphael Quinet, Dave Neary, Jim Meier
Overview of Changes in GIMP 1.3.9
......
......@@ -330,8 +330,6 @@ gimp_brush_preview_render_timeout_func (GimpBrushPreview *brush_preview)
GimpBrushPipe *brush_pipe;
GimpBrush *brush;
TempBuf *temp_buf;
gint brush_width;
gint brush_height;
preview = GIMP_PREVIEW (brush_preview);
......@@ -343,26 +341,25 @@ gimp_brush_preview_render_timeout_func (GimpBrushPreview *brush_preview)
return FALSE;
}
brush_pipe = GIMP_BRUSH_PIPE (preview->viewable);
brush_width = brush->mask->width;
brush_height = brush->mask->height;
brush_pipe = GIMP_BRUSH_PIPE (preview->viewable);
brush_preview->pipe_animation_index++;
if (brush_preview->pipe_animation_index >= brush_pipe->nbrushes)
brush_preview->pipe_animation_index = 0;
brush = GIMP_BRUSH (brush_pipe->brushes[brush_preview->pipe_animation_index]);
brush =
GIMP_BRUSH (brush_pipe->brushes[brush_preview->pipe_animation_index]);
temp_buf = gimp_viewable_get_new_preview (GIMP_VIEWABLE (brush),
preview->width,
preview->height);
gimp_preview_render_and_flush (preview,
temp_buf,
-1);
gimp_preview_render_and_flush (preview, temp_buf, -1);
temp_buf_free (temp_buf);
gtk_widget_queue_draw (GTK_WIDGET (preview));
return TRUE;
}
......@@ -330,8 +330,6 @@ gimp_brush_preview_render_timeout_func (GimpBrushPreview *brush_preview)
GimpBrushPipe *brush_pipe;
GimpBrush *brush;
TempBuf *temp_buf;
gint brush_width;
gint brush_height;
preview = GIMP_PREVIEW (brush_preview);
......@@ -343,26 +341,25 @@ gimp_brush_preview_render_timeout_func (GimpBrushPreview *brush_preview)
return FALSE;
}
brush_pipe = GIMP_BRUSH_PIPE (preview->viewable);
brush_width = brush->mask->width;
brush_height = brush->mask->height;
brush_pipe = GIMP_BRUSH_PIPE (preview->viewable);
brush_preview->pipe_animation_index++;
if (brush_preview->pipe_animation_index >= brush_pipe->nbrushes)
brush_preview->pipe_animation_index = 0;
brush = GIMP_BRUSH (brush_pipe->brushes[brush_preview->pipe_animation_index]);
brush =
GIMP_BRUSH (brush_pipe->brushes[brush_preview->pipe_animation_index]);
temp_buf = gimp_viewable_get_new_preview (GIMP_VIEWABLE (brush),
preview->width,
preview->height);
gimp_preview_render_and_flush (preview,
temp_buf,
-1);
gimp_preview_render_and_flush (preview, temp_buf, -1);
temp_buf_free (temp_buf);
gtk_widget_queue_draw (GTK_WIDGET (preview));
return TRUE;
}
......@@ -330,8 +330,6 @@ gimp_brush_preview_render_timeout_func (GimpBrushPreview *brush_preview)
GimpBrushPipe *brush_pipe;
GimpBrush *brush;
TempBuf *temp_buf;
gint brush_width;
gint brush_height;
preview = GIMP_PREVIEW (brush_preview);
......@@ -343,26 +341,25 @@ gimp_brush_preview_render_timeout_func (GimpBrushPreview *brush_preview)
return FALSE;
}
brush_pipe = GIMP_BRUSH_PIPE (preview->viewable);
brush_width = brush->mask->width;
brush_height = brush->mask->height;
brush_pipe = GIMP_BRUSH_PIPE (preview->viewable);
brush_preview->pipe_animation_index++;
if (brush_preview->pipe_animation_index >= brush_pipe->nbrushes)
brush_preview->pipe_animation_index = 0;
brush = GIMP_BRUSH (brush_pipe->brushes[brush_preview->pipe_animation_index]);
brush =
GIMP_BRUSH (brush_pipe->brushes[brush_preview->pipe_animation_index]);
temp_buf = gimp_viewable_get_new_preview (GIMP_VIEWABLE (brush),
preview->width,
preview->height);
gimp_preview_render_and_flush (preview,
temp_buf,
-1);
gimp_preview_render_and_flush (preview, temp_buf, -1);
temp_buf_free (temp_buf);
gtk_widget_queue_draw (GTK_WIDGET (preview));
return TRUE;
}
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