minor API cleanup. Use horizontal and vertical scale to determine the
2007-06-06 Sven Neumann <sven@gimp.org> * app/core/gimpprojection.[ch]: minor API cleanup. Use horizontal and vertical scale to determine the pyramid level to use. * app/display/gimpdisplayshell-draw.c * app/display/gimpdisplayshell-render.c: follow the API change. svn path=/trunk/; revision=22730
This commit is contained in:
committed by
Sven Neumann
parent
f7b73192c0
commit
a4079a37db
@ -831,12 +831,16 @@ render_image_init_info_full (RenderInfo *info,
|
||||
gint h,
|
||||
GimpProjection *projection)
|
||||
{
|
||||
gint level = gimp_projection_scale_to_level (projection, shell->scale_x);
|
||||
gint level;
|
||||
|
||||
level = gimp_projection_get_level (projection,
|
||||
shell->scale_x, shell->scale_y);
|
||||
|
||||
info->shell = shell;
|
||||
info->dest_bpp = 3;
|
||||
info->dest_bpl = info->dest_bpp * GIMP_RENDER_BUF_WIDTH;
|
||||
info->scalex = shell->scale_x * (1 << level);
|
||||
info->scaley = shell->scale_y * (1 << level);
|
||||
info->scalex = shell->scale_x * (1 << level);
|
||||
info->scaley = shell->scale_y * (1 << level);
|
||||
|
||||
render_image_init_info (info, shell, x, y,
|
||||
gimp_projection_get_tiles_at_level (projection,
|
||||
|
||||
Reference in New Issue
Block a user