plug-ins/common/apply_lens.c revert to aspect preview until these plug-ins

* plug-ins/common/apply_lens.c
* plug-ins/common/blinds.c: revert to aspect preview until these
  plug-ins fully support zoomed preview.
This commit is contained in:
David Odin 2005-12-23 22:35:31 +00:00
parent 54c86f97f7
commit 91f013780e
3 changed files with 15 additions and 7 deletions

View File

@ -1,3 +1,9 @@
2005-12-23 DindinX <dindinx@gimp.org>
* plug-ins/common/apply_lens.c
* plug-ins/common/blinds.c: revert to aspect preview until these
plug-ins fully support zoomed preview.
2005-12-23 Michael Natterer <mitch@gimp.org>
* app/core/gimpchannel.c

View File

@ -251,11 +251,12 @@ drawlens (GimpDrawable *drawable,
if (preview)
{
src = gimp_zoom_preview_get_source (GIMP_ZOOM_PREVIEW (preview),
&width, &height, &bytes);
gimp_preview_get_position (preview, &x1, &y1);
gimp_preview_get_size (preview, &width, &height);
x2 = x1 + width;
y2 = y1 + height;
src = gimp_drawable_get_thumbnail_data (drawable->drawable_id,
&width, &height, &bytes);
regionwidth = width;
regionheight = height;
}
@ -411,7 +412,7 @@ lens_dialog (GimpDrawable *drawable)
gtk_container_add (GTK_CONTAINER (GTK_DIALOG (dialog)->vbox), main_vbox);
gtk_widget_show (main_vbox);
preview = gimp_zoom_preview_new (drawable);
preview = gimp_aspect_preview_new (drawable, NULL);
gtk_box_pack_start_defaults (GTK_BOX (main_vbox), preview);
gtk_widget_show (preview);
g_signal_connect_swapped (preview, "invalidated",

View File

@ -246,7 +246,7 @@ blinds_dialog (GimpDrawable *drawable)
gtk_container_add (GTK_CONTAINER (GTK_DIALOG (dialog)->vbox), main_vbox);
gtk_widget_show (main_vbox);
preview = gimp_zoom_preview_new (drawable);
preview = gimp_aspect_preview_new (drawable, NULL);
gtk_box_pack_start_defaults (GTK_BOX (main_vbox), preview);
gtk_widget_show (preview);
g_signal_connect_swapped (preview, "invalidated",
@ -453,9 +453,10 @@ dialog_update_preview (GimpDrawable *drawable,
guchar bg[4];
gint width, height, bpp;
cache = gimp_zoom_preview_get_source (GIMP_ZOOM_PREVIEW (preview),
&width, &height, &bpp);
gimp_preview_get_size (preview, &width, &height);
bpp = gimp_drawable_bpp (drawable->drawable_id);
cache = gimp_drawable_get_thumbnail_data (drawable->drawable_id,
&width, &height, &bpp);
p = cache;
gimp_context_get_background (&background);