~dshea/timezonemap/pixmaps-update

Viewing all changes in revision 49.

  • Committer: David Shea
  • Date: 2015-03-24 14:49:41 UTC
  • Revision ID: dshea@redhat.com-20150324144941-de5zg3qo4pv9s059
Remove the color codes map.

cc.png is used to map locations on a map (usually mouse clicks) to time zone
offsets. However, in every case except one, the offset set by get_loc_for_xy()
is immediately overwritten by set_location(). For the exception case
(cc_timezone_map_get_timezone_at_coords), having the selected_offset property
change during the call is an unexpected side effect.

Furthermore, the data in the color_codes array was not entirely in sync with
the data in cc.png (e.g., no color_codes entry for UTC+14), and the borders
between zones in cc.png are feathered instead of being zones of a single pixel
value, so clicks around the borders would result in no zone being selected. If
cc.png is ever revived, it needs to be regenerated from the SVG source.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: