Keith Packard [Sat, 14 Mar 2020 05:09:46 +0000 (22:09 -0700)]
Update to 2020
Use librsvg instead of libsvg.
Use gdk_cairo_create instead of open-coding context creation.
Switch from CAIRO_FORMAT_ARGB32 to CAIRO_CONTENT_COLOR_ALPHA.
Surprisingly few changes required to bring this code forward seventeen
years...
Carl Worth [Tue, 11 Nov 2003 15:51:53 +0000 (15:51 +0000)]
* src/grrobot.c (grr_game_read_notices): Exit cleanly: need to
return control to Gtk+ so that gtk_main_quit has a chance to do
its job.
(grr_game_read_notices): Track changes in grr_board_view timer
API.
(grr_game_key_press_callback): Eliminate bid_entry text box and
bid button. Instead, a bare number in the message_entry will
result in a bid.
(grr_game_key_press_callback): Change several keybindings to
require a control modifier: C-N=Next turn, C-P=Pass, C-Z=Zap timer
and C-RGBY for robot selection. Now, no keybindings should
interfere with simple text messages.
(grr_game_pass): "Pass" button now issues "abandon" instead of
"revoke" when not in show mode.
(grr_game_next): "Next Turn" button now only issues turn never
"abandon", so there's no longer a problem when two users both hit
the "Next Turn" button.
* src/grr_board_view.c (grr_board_view_decrement_timer): Make the
"Zap timer" feature animate the fast clock rather than just
snapping.
(grr_board_view_start_timer):
(grr_board_view_stop_timer):
(grr_board_view_set_timer): Cleaner timer API: set, start, and
stop.
Carl Worth [Mon, 10 Nov 2003 15:45:45 +0000 (15:45 +0000)]
* src/grrobot.c (grr_game_read_notices): Call new board_view timer
functions on the appropriate state transitions.
* src/grr_board_view.c (grr_board_view_expose): Add code to draw a
cute alpha-blended timer which shows off the use of cairo_arc.
(grr_board_view_refresh_timer):
(grr_board_view_decrement_timer):
(grr_board_view_start_timer):
(grr_board_view_stop_timer):
(grr_board_view_reset_timer): New functions for managing the timer.
Carl Worth [Fri, 27 Jun 2003 03:13:15 +0000 (03:13 +0000)]
Resized the graphics slightly. The walls are thinner, the padding is smaller, and
the targets and robots are a bit larger. Also, added black trim around all solid-color targets.
Removed "manual" drawing of grid, incorporating it into cell.svg instead.
Carl Worth [Wed, 25 Jun 2003 10:52:59 +0000 (10:52 +0000)]
grrobot will now load SVG icons from /share/grrobot/*.svg
A default SVG icon set is now builtin so the grrobot does not rely on external files.
Rendering is a bit faster, (SVG files are only parsed once).