mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 12:32:37 +00:00
quick fix so colors in the PDB work again.
2006-06-25 Manish Singh <yosh@gimp.org> * plug-ins/pygimp/pygimp-pdb.c: quick fix so colors in the PDB work again.
This commit is contained in:
parent
68dfb3f223
commit
1eeaa25fa0
|
@ -1,3 +1,8 @@
|
|||
2006-06-25 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* plug-ins/pygimp/pygimp-pdb.c: quick fix so colors in the PDB work
|
||||
again.
|
||||
|
||||
2006-06-25 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* libgimp/gimpuitypes.h
|
||||
|
|
|
@ -452,8 +452,8 @@ pygimp_param_from_tuple(PyObject *args, const GimpParamDef *ptype, int nparams)
|
|||
b = PySequence_GetItem(item, 2);
|
||||
check(!PyInt_Check(r) || !PyInt_Check(g) ||
|
||||
!PyInt_Check(b));
|
||||
gimp_rgb_set_uchar(&ret[i].data.d_color, PyInt_AsLong(r),
|
||||
PyInt_AsLong(g), PyInt_AsLong(b));
|
||||
gimp_rgba_set_uchar(&ret[i].data.d_color, PyInt_AsLong(r),
|
||||
PyInt_AsLong(g), PyInt_AsLong(b), 255);
|
||||
break;
|
||||
case GIMP_PDB_REGION:
|
||||
check(!PySequence_Check(item) ||
|
||||
|
|
Loading…
Reference in a new issue