Mercurial > MadButterfly
comparison src/redraw_man.c @ 815:4badbfa8f386
Change order of statement to fix segmentation fault
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Sun, 12 Sep 2010 12:20:09 +0800 |
parents | 5aca6024b147 |
children | 0e56a1ca19b2 |
comparison
equal
deleted
inserted
replaced
813:dfa8b69e4423 | 815:4badbfa8f386 |
---|---|
1874 * non-zeroing and its parent is changed. | 1874 * non-zeroing and its parent is changed. |
1875 */ | 1875 */ |
1876 n_dpca_coords = rdman->dirty_pcache_area_coords.num; | 1876 n_dpca_coords = rdman->dirty_pcache_area_coords.num; |
1877 dpca_coords = rdman->dirty_pcache_area_coords.ds; | 1877 dpca_coords = rdman->dirty_pcache_area_coords.ds; |
1878 for(i = 0; i < n_dpca_coords; i++) { | 1878 for(i = 0; i < n_dpca_coords; i++) { |
1879 coord = dpca_coords[i]; | |
1880 | |
1879 if(coord_get_flags(coord, COF_TEMP_MARK)) | 1881 if(coord_get_flags(coord, COF_TEMP_MARK)) |
1880 continue; | 1882 continue; |
1881 coord_set_flags(coord, COF_TEMP_MARK); | 1883 coord_set_flags(coord, COF_TEMP_MARK); |
1882 | 1884 |
1883 coord = dpca_coords[i]; | |
1884 pcached_coord = coord_get_cached(coord_get_parent(coord)); | 1885 pcached_coord = coord_get_cached(coord_get_parent(coord)); |
1885 | 1886 |
1886 if(coord_is_root(coord) || IS_CACHE_REDRAW_ALL(pcached_coord)) | 1887 if(coord_is_root(coord) || IS_CACHE_REDRAW_ALL(pcached_coord)) |
1887 continue; | 1888 continue; |
1888 | 1889 |