[Commit] grrobot/src grr_board_view.c, 1.13, 1.14 grr_board_view.h, 1.10, 1.11

Carl Worth commit at keithp.com
Thu Jul 31 19:46:28 PDT 2003


Committed by: cworth

Update of /local/src/CVS/grrobot/src
In directory home.keithp.com:/tmp/cvs-serv3461/src

Modified Files:
	grr_board_view.c grr_board_view.h 
Log Message:
New, lovely octagon targets from Richard.
Made inactive targets a bit darker.

Index: grr_board_view.c
===================================================================
RCS file: /local/src/CVS/grrobot/src/grr_board_view.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- grr_board_view.c	26 Jul 2003 08:37:12 -0000	1.13
+++ grr_board_view.c	1 Aug 2003 01:46:25 -0000	1.14
@@ -451,7 +451,11 @@
 	    if (target) {
 		if (target && target != goal_target) {
 		    cairo_save (xrs);
+		    cairo_set_alpha (xrs, .25);
+		    cairo_set_operator (xrs, CAIRO_OPERATOR_XOR);
+		    grr_icon_draw_predrawn (view->target_icon[rr_target_idx (target)], xrs);
 		    cairo_set_alpha (xrs, 0.25);
+		    cairo_set_operator (xrs, CAIRO_OPERATOR_OVER);
 		    grr_icon_draw_predrawn (view->target_icon[rr_target_idx (target)], xrs);
 		    cairo_restore (xrs);
 		} else {

Index: grr_board_view.h
===================================================================
RCS file: /local/src/CVS/grrobot/src/grr_board_view.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- grr_board_view.h	26 Jul 2003 08:37:12 -0000	1.10
+++ grr_board_view.h	1 Aug 2003 01:46:25 -0000	1.11
@@ -109,6 +109,11 @@
 					int pixel_x, int pixel_y,
 					int *cell_x, int *cell_y);
 
+void
+grr_board_view_transform_cell_to_pixel (grr_board_view_t *view,
+					int cell_x, int cell_y,
+					int *pixel_x, int *pixel_y);
+
 #ifdef __cplusplus
 }
 #endif /* __cplusplus */




More information about the Commit mailing list