pike.git
/
src
/
modules
/
Image
/
colors.c
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/modules/Image/colors.c:1:
/* || This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information.
-
|| $Id: colors.c,v 1.
75
2005
/
11
/
12
20
:
36
:
07
nilsson
Exp $
+
|| $Id: colors.c,v 1.
76
2008
/
05
/
29
10
:
11
:
15
grubba
Exp $
*/ /* **! module Image **! submodule Color **! **! This module keeps names and easy handling **! for easy color support. It gives you an easy **! way to get colors from names. **!
pike.git/src/modules/Image/colors.c:856:
} static void image_color_index(INT32 args) { struct svalue s; if (args!=1) Pike_error("Image.Color[]: illegal number of arguments\n");
-
object_index_no_free2(&s,THISOBJ,sp-1);
+
object_index_no_free2(&s,
THISOBJ,
0,
sp-1);
if (s.type==T_INT && sp[-1].type==T_STRING) { if (sp[-1].u.string==str_r) { pop_stack(); push_int(THIS->rgb.r); return; } if (sp[-1].u.string==str_g) {
pike.git/src/modules/Image/colors.c:1432:
push_constant_text("#"); stack_swap(); f_add(2); image_get_color(1); } static void image_colors_index(INT32 args) { struct svalue s;
-
object_index_no_free2(&s,THISOBJ,sp-1);
+
object_index_no_free2(&s,
THISOBJ,
0,
sp-1);
if (s.type!=T_INT) { pop_stack(); *(sp++)=s; return; } image_get_color(args); } static void image_make_color(INT32 args)