~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to app/vectors/gimpvectors-preview.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 16:33:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070502163303-bvzhjzbpw8qglc4y
Tags: 2.3.16-1ubuntu1
* Resynchronized with Debian, remaining Ubuntu changes:
  - debian/rules: i18n magic.
* debian/control.in:
  - Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch,
  debian/patches/10_dont_show_wizard.patch: updated.
* debian/patches/04_composite-signedness.patch,
  debian/patches/05_add-letter-spacing.patch: dropped, used upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* The GIMP -- an image manipulation program
 
1
/* GIMP - The GNU Image Manipulation Program
2
2
 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
3
3
 *
4
4
 * This program is free software; you can redistribute it and/or modify
24
24
 
25
25
#include "vectors-types.h"
26
26
 
 
27
#include "libgimpmath/gimpmath.h"
 
28
 
27
29
#include "base/temp-buf.h"
28
30
 
29
31
#include "core/gimpimage.h"
37
39
 
38
40
TempBuf *
39
41
gimp_vectors_get_new_preview (GimpViewable *viewable,
 
42
                              GimpContext  *context,
40
43
                              gint          width,
41
44
                              gint          height)
42
45
{
51
54
  vectors = GIMP_VECTORS (viewable);
52
55
  item    = GIMP_ITEM (viewable);
53
56
 
54
 
  xscale = ((gdouble) width)  / gimp_image_get_width  (item->gimage);
55
 
  yscale = ((gdouble) height) / gimp_image_get_height (item->gimage);
 
57
  xscale = ((gdouble) width)  / gimp_image_get_width  (item->image);
 
58
  yscale = ((gdouble) height) / gimp_image_get_height (item->image);
56
59
 
57
60
  temp_buf = temp_buf_new (width, height, 1, 0, 0, white);
58
61
  data = temp_buf_data (temp_buf);