mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-10-06 01:12:40 +02:00
app, plug-ins: Fix warnings and typo
app/text/gimptextlayout.c gives warnings on MSYS2 about xres and yres not being initialized. plug-ins/file-tiff/file-tiff-load.c gives warnings about read_unit not being initialized. plug-ins/file-bmp/bmp.c has a typo on the label of the rgbx-8888 option for rgb-format.
This commit is contained in:
@@ -377,8 +377,8 @@ gimp_text_layout_get_transform (GimpTextLayout *layout,
|
||||
cairo_matrix_t *matrix)
|
||||
{
|
||||
GimpText *text;
|
||||
gdouble xres;
|
||||
gdouble yres;
|
||||
gdouble xres = 0;
|
||||
gdouble yres = 0;
|
||||
gdouble norm;
|
||||
|
||||
g_return_if_fail (GIMP_IS_TEXT_LAYOUT (layout));
|
||||
|
@@ -224,7 +224,7 @@ bmp_create_procedure (GimpPlugIn *plug_in,
|
||||
"rgb-555", RGB_555, _("16 bit (X1 R5 G5 B5)"), NULL,
|
||||
"rgb-888", RGB_888, _("24 bit (R8 G8 B8)"), NULL,
|
||||
"rgba-8888", RGBA_8888, _("32 bit (A8 R8 G8 B8)"), NULL,
|
||||
"rgbx-8888", RGBX_8888, _("32 bit (X8 R8 G8 B8"), NULL,
|
||||
"rgbx-8888", RGBX_8888, _("32 bit (X8 R8 G8 B8)"), NULL,
|
||||
NULL),
|
||||
"rgb-888",
|
||||
G_PARAM_READWRITE);
|
||||
|
@@ -1303,10 +1303,10 @@ load_image (GimpProcedure *procedure,
|
||||
|
||||
/* any resolution info in the file? */
|
||||
{
|
||||
gdouble xres = 72.0;
|
||||
gdouble yres = 72.0;
|
||||
gushort read_unit;
|
||||
GimpUnit *unit = gimp_unit_pixel (); /* invalid unit */
|
||||
gdouble xres = 72.0;
|
||||
gdouble yres = 72.0;
|
||||
gushort read_unit = RESUNIT_NONE;
|
||||
GimpUnit *unit = gimp_unit_pixel (); /* invalid unit */
|
||||
|
||||
if (TIFFGetField (tif, TIFFTAG_XRESOLUTION, &xres))
|
||||
{
|
||||
|
Reference in New Issue
Block a user