mirror of https://github.com/GNOME/gimp.git
properly round the resolution entry. Fixes bug #332501.
2006-02-26 Simon Budig <simon@gimp.org> * plug-ins/bmp/bmpwrite.c: properly round the resolution entry. Fixes bug #332501.
This commit is contained in:
parent
50b0105822
commit
9f3f8e3f8f
|
@ -1,3 +1,8 @@
|
|||
2006-02-26 Simon Budig <simon@gimp.org>
|
||||
|
||||
* plug-ins/bmp/bmpwrite.c: properly round the resolution entry.
|
||||
Fixes bug #332501.
|
||||
|
||||
2005-06-26 Hans Breuer <hans@breuer.org>
|
||||
|
||||
* **/makefile.msc app/gimpcore.def : updated
|
||||
|
|
|
@ -268,9 +268,11 @@ WriteBMP (const gchar *filename,
|
|||
* n dots inch 100 cm m dots
|
||||
* ------ * ------- * ------ = ------
|
||||
* inch 2.54 cm m inch
|
||||
*
|
||||
* We add 0.5 for proper rounding.
|
||||
*/
|
||||
Bitmap_Head.biXPels = (long int) (xresolution * 100.0 / 2.54);
|
||||
Bitmap_Head.biYPels = (long int) (yresolution * 100.0 / 2.54);
|
||||
Bitmap_Head.biXPels = (long int) (xresolution * 100.0 / 2.54 + 0.5);
|
||||
Bitmap_Head.biYPels = (long int) (yresolution * 100.0 / 2.54 + 0.5);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue