~ubuntu-branches/ubuntu/oneiric/gimp/oneiric-security

« back to all changes in this revision

Viewing changes to plug-ins/common/file-tga.c

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2010-07-12 15:08:08 UTC
  • mfrom: (1.1.23) (0.4.6 sid)
  • Revision ID: package-import@ubuntu.com-20100712150808-db9xqgtxrvpyl3g2
Tags: 2.6.10-1ubuntu1
Resync on Debian, dropping changes which are in the new version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1133
1133
}  /*read_image*/
1134
1134
 
1135
1135
 
1136
 
static gint
 
1136
static gboolean
1137
1137
save_image (const gchar  *filename,
1138
1138
            gint32        image_ID,
1139
1139
            gint32        drawable_ID,
1215
1215
      header[3] = header[4] = header[5] = header[6] = header[7] = 0;
1216
1216
    }
1217
1217
 
1218
 
  header[8]  = header[9]  = 0;                          /* xorigin */
1219
 
  header[10] = header[11] = tsvals.origin ? 0 : height; /* yorigin */
 
1218
  header[8]  = header[9] = 0;                           /* xorigin */
 
1219
  header[10] = tsvals.origin ? 0 : (height % 256);      /* yorigin */
 
1220
  header[11] = tsvals.origin ? 0 : (height / 256);      /* yorigin */
 
1221
 
1220
1222
 
1221
1223
  header[12] = width % 256;
1222
1224
  header[13] = width / 256;