mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00: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:
parent
8dd7783fc2
commit
5a03dff9d2
3 changed files with 7 additions and 7 deletions
|
@ -377,8 +377,8 @@ gimp_text_layout_get_transform (GimpTextLayout *layout,
|
||||||
cairo_matrix_t *matrix)
|
cairo_matrix_t *matrix)
|
||||||
{
|
{
|
||||||
GimpText *text;
|
GimpText *text;
|
||||||
gdouble xres;
|
gdouble xres = 0;
|
||||||
gdouble yres;
|
gdouble yres = 0;
|
||||||
gdouble norm;
|
gdouble norm;
|
||||||
|
|
||||||
g_return_if_fail (GIMP_IS_TEXT_LAYOUT (layout));
|
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-555", RGB_555, _("16 bit (X1 R5 G5 B5)"), NULL,
|
||||||
"rgb-888", RGB_888, _("24 bit (R8 G8 B8)"), NULL,
|
"rgb-888", RGB_888, _("24 bit (R8 G8 B8)"), NULL,
|
||||||
"rgba-8888", RGBA_8888, _("32 bit (A8 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),
|
NULL),
|
||||||
"rgb-888",
|
"rgb-888",
|
||||||
G_PARAM_READWRITE);
|
G_PARAM_READWRITE);
|
||||||
|
|
|
@ -1303,10 +1303,10 @@ load_image (GimpProcedure *procedure,
|
||||||
|
|
||||||
/* any resolution info in the file? */
|
/* any resolution info in the file? */
|
||||||
{
|
{
|
||||||
gdouble xres = 72.0;
|
gdouble xres = 72.0;
|
||||||
gdouble yres = 72.0;
|
gdouble yres = 72.0;
|
||||||
gushort read_unit;
|
gushort read_unit = RESUNIT_NONE;
|
||||||
GimpUnit *unit = gimp_unit_pixel (); /* invalid unit */
|
GimpUnit *unit = gimp_unit_pixel (); /* invalid unit */
|
||||||
|
|
||||||
if (TIFFGetField (tif, TIFFTAG_XRESOLUTION, &xres))
|
if (TIFFGetField (tif, TIFFTAG_XRESOLUTION, &xres))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue