Add new negative parameter to arc.

This commit is contained in:
Michael Jumper 2012-03-13 19:07:24 -07:00
parent a5fdb711c5
commit b71eca8183
2 changed files with 8 additions and 2 deletions

View File

@ -392,10 +392,13 @@ int guac_protocol_send_sync(guac_socket* socket, guac_timestamp timestamp);
* @param radius The radius of the circle containing the arc. * @param radius The radius of the circle containing the arc.
* @param startAngle The starting angle, in radians. * @param startAngle The starting angle, in radians.
* @param endAngle The ending angle, in radians. * @param endAngle The ending angle, in radians.
* @param negative Zero if the arc should be drawn in order of increasing
* angle, non-zero otherwise.
* @return Zero on success, non-zero on error. * @return Zero on success, non-zero on error.
*/ */
int guac_protocol_send_arc(guac_socket* socket, const guac_layer* layer, int guac_protocol_send_arc(guac_socket* socket, const guac_layer* layer,
int x, int y, int radius, double startAngle, double endAngle); int x, int y, int radius, double startAngle, double endAngle,
int negative);
/** /**
* Sends a cfill instruction over the given guac_socket connection. * Sends a cfill instruction over the given guac_socket connection.

View File

@ -484,7 +484,8 @@ int guac_protocol_send_args(guac_socket* socket, const char** args) {
int guac_protocol_send_arc(guac_socket* socket, const guac_layer* layer, int guac_protocol_send_arc(guac_socket* socket, const guac_layer* layer,
int x, int y, int radius, double startAngle, double endAngle) { int x, int y, int radius, double startAngle, double endAngle,
int negative) {
return return
guac_socket_write_string(socket, "3.arc,") guac_socket_write_string(socket, "3.arc,")
@ -499,6 +500,8 @@ int guac_protocol_send_arc(guac_socket* socket, const guac_layer* layer,
|| __guac_socket_write_length_double(socket, startAngle) || __guac_socket_write_length_double(socket, startAngle)
|| guac_socket_write_string(socket, ",") || guac_socket_write_string(socket, ",")
|| __guac_socket_write_length_double(socket, endAngle) || __guac_socket_write_length_double(socket, endAngle)
|| guac_socket_write_string(socket, ",")
|| guac_socket_write_string(socket, negative ? "1" : "0")
|| guac_socket_write_string(socket, ";"); || guac_socket_write_string(socket, ";");
} }