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

« back to all changes in this revision

Viewing changes to plug-ins/Lighting/lighting_image.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:
49
49
  gimp_pixel_rgn_get_pixel (region, data, x, y);
50
50
 
51
51
  if (region->bpp == 1)
52
 
  { 
 
52
  {
53
53
    ret_val = data[0];
54
54
  } else
55
55
  {
158
158
      pos.x = (gdouble) x / (gdouble) width;
159
159
      pos.y = (gdouble) y / (gdouble) width;
160
160
 
161
 
      pos.y += 0.5 * (1.0 - (gdouble) height / (gdouble) width); 
 
161
      pos.y += 0.5 * (1.0 - (gdouble) height / (gdouble) width);
162
162
    }
163
163
  else
164
164
    {
183
183
      pos.x = x / (gdouble) width;
184
184
      pos.y = y / (gdouble) width;
185
185
 
186
 
      pos.y += 0.5 * (1.0 - (gdouble) height / (gdouble) width); 
 
186
      pos.y += 0.5 * (1.0 - (gdouble) height / (gdouble) width);
187
187
    }
188
188
  else
189
189
    {
252
252
{
253
253
  gint    x1, y1, x2, y2;
254
254
  GimpRGB p[4];
255
 
 
 
255
 
256
256
  x1 = RINT (u);
257
257
  y1 = RINT (v);
258
258
 
288
288
{
289
289
  gint    x1, y1, x2, y2;
290
290
  gdouble p[4];
291
 
 
 
291
 
292
292
  x1 = RINT (u);
293
293
  y1 = RINT (v);
294
294