Mercurial > MadButterfly
comparison src/redraw_man.c @ 769:7c73fbc8d700
Remove unused local variables
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Sun, 29 Aug 2010 18:47:06 +0800 |
parents | d2f2ed27b84d |
children | 01b514800fbe |
comparison
equal
deleted
inserted
replaced
768:13669b28826d | 769:7c73fbc8d700 |
---|---|
715 return ERR; | 715 return ERR; |
716 } | 716 } |
717 | 717 |
718 void redraw_man_destroy(redraw_man_t *rdman) { | 718 void redraw_man_destroy(redraw_man_t *rdman) { |
719 coord_t *coord, *saved_coord; | 719 coord_t *coord, *saved_coord; |
720 shape_t *shape, *saved_shape; | 720 shape_t *shape; |
721 geo_t *member; | 721 geo_t *member; |
722 | 722 |
723 mb_prop_store_destroy(&rdman->props); | 723 mb_prop_store_destroy(&rdman->props); |
724 | 724 |
725 free_free_objs(rdman); | 725 free_free_objs(rdman); |
1433 * | 1433 * |
1434 * This function also responsible for computing area of parent cached | 1434 * This function also responsible for computing area of parent cached |
1435 * coord, coord_canvas_info_t::pcache_cur_area, for its cached children. | 1435 * coord, coord_canvas_info_t::pcache_cur_area, for its cached children. |
1436 */ | 1436 */ |
1437 static int clean_rdman_coords(redraw_man_t *rdman) { | 1437 static int clean_rdman_coords(redraw_man_t *rdman) { |
1438 coord_t *coord, *child; | 1438 coord_t *coord; |
1439 coord_t **dirty_coords; | 1439 coord_t **dirty_coords; |
1440 int n_dirty_coords; | 1440 int n_dirty_coords; |
1441 int i, r; | 1441 int i, r; |
1442 | 1442 |
1443 n_dirty_coords = rdman->dirty_coords.num; | 1443 n_dirty_coords = rdman->dirty_coords.num; |
1488 * sub-graphic to origin of the space. | 1488 * sub-graphic to origin of the space. |
1489 */ | 1489 */ |
1490 static | 1490 static |
1491 void zeroing_coord(redraw_man_t *rdman, coord_t *coord) { | 1491 void zeroing_coord(redraw_man_t *rdman, coord_t *coord) { |
1492 coord_t *cur; | 1492 coord_t *cur; |
1493 area_t *area, *saved_area; | 1493 area_t *area; |
1494 geo_t *geo; | 1494 geo_t *geo; |
1495 co_aix min_x, min_y; | 1495 co_aix min_x, min_y; |
1496 co_aix max_x, max_y; | 1496 co_aix max_x, max_y; |
1497 co_aix x, y; | 1497 co_aix x, y; |
1498 int w, h; | 1498 int w, h; |
1499 int c_w, c_h; | 1499 int c_w, c_h; |
1500 mbe_t *canvas; | 1500 mbe_t *canvas; |
1501 co_aix *aggr; | 1501 co_aix *aggr; |
1502 co_aix poses[4][2]; | |
1503 | 1502 |
1504 if(coord->parent == NULL) /*! \note Should not zeroing root coord */ | 1503 if(coord->parent == NULL) /*! \note Should not zeroing root coord */ |
1505 abort(); | 1504 abort(); |
1506 if(!(coord_is_zeroing(coord))) | 1505 if(!(coord_is_zeroing(coord))) |
1507 abort(); | 1506 abort(); |
1726 */ | 1725 */ |
1727 static void add_aggr_dirty_areas_to_ancestor(redraw_man_t *rdman, | 1726 static void add_aggr_dirty_areas_to_ancestor(redraw_man_t *rdman, |
1728 coord_t *coord) { | 1727 coord_t *coord) { |
1729 int i; | 1728 int i; |
1730 int n_areas; | 1729 int n_areas; |
1731 int enable_poses1 = 0; | |
1732 co_aix poses0[2][2], poses1[2][2]; | 1730 co_aix poses0[2][2], poses1[2][2]; |
1733 co_aix reverse[6]; | |
1734 co_aix canvas2pdev_matrix[6]; | 1731 co_aix canvas2pdev_matrix[6]; |
1735 area_t **areas, *area; | 1732 area_t **areas, *area; |
1736 area_t *area0, *area1; | 1733 area_t *area0, *area1; |
1737 coord_t *parent, *pcached_coord; | 1734 coord_t *parent, *pcached_coord; |
1738 | 1735 |
2363 int rdman_redraw_changed(redraw_man_t *rdman) { | 2360 int rdman_redraw_changed(redraw_man_t *rdman) { |
2364 int r; | 2361 int r; |
2365 event_t event; | 2362 event_t event; |
2366 subject_t *redraw; | 2363 subject_t *redraw; |
2367 int i; | 2364 int i; |
2368 coord_t *coord, **coords; | 2365 coord_t *coord; |
2369 int n_areas; | 2366 int n_areas; |
2370 area_t **areas; | 2367 area_t **areas; |
2371 | 2368 |
2372 r = rdman_clean_dirties(rdman); | 2369 r = rdman_clean_dirties(rdman); |
2373 if(r != OK) | 2370 if(r != OK) |