Roxen.git/
server/
base_server/
roxen.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2000-04-14
2000-04-14 22:02:52 by Per Hedbor <ph@opera.com>
66868a6c0b7782ad5d4ccb389d985c40b97daf4d (
31
lines) (+
12
/-
19
)
[
Show
|
Annotate
]
Branch:
5.2
More fixes to the argument cache
Rev: server/base_server/roxen.pike:1.480
4:
// Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others. // ABS and suicide systems contributed freely by Francesco Chemolli
-
constant cvs_version="$Id: roxen.pike,v 1.
479
2000/04/
13
19
:
03
:
18
per Exp $";
+
constant cvs_version="$Id: roxen.pike,v 1.
480
2000/04/
14
22
:
02
:
52
per Exp $";
object backend_thread; ArgCache argcache;
2119:
if( args["rotate-cw"] || args["rotate-ccw"]) { float degree = (float)(args["rotate-cw"] || args["rotate-ccw"]);
-
switch( args["rotate-unit"] )
+
switch( args["rotate-unit"]
&& args["rotate-unit"][0..0]
)
{
-
case "r":
-
degree = (degree / 2*3.1415) * 360;
-
break;
-
case "
d
":
-
break;
-
case "
n
":
-
degree = (degree /
400
) * 360;
-
break;
+
case "r": degree = (degree / 2*3.1415) * 360;
break;
+
case
"d":
break;
+
case "
n
":
degree
=
(degree
/
400)
*
360;
break;
+
case "
p
": degree = (degree /
1.0
) * 360; break;
}
-
if( args["rotate-
ccw
"] )
+
if( args["rotate-
cw
"] )
degree = -degree;
-
if( alpha )
-
{
+
if(
!
alpha )
+
alpha = reply->copy()->clear(255,255,255);
reply = reply->rotate_expand( degree );
-
alpha = alpha->rotate( degree,
0,0,0 );
-
} else {
-
alpha = reply->copy()->clear(255,255,255)->rotate(degree,0,0,0);
-
reply = reply->rotate_expand( degree );
+
alpha = alpha->rotate( degree,0,0,0 );
}
-
}
+
if( args["mirror-x"] )