Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| SHA1 Hash: | 515e7fa0c810268447f5469e3836a7f3ba4dbf1f |
|---|---|
| Date: | 2012-04-22 09:56:26 |
| User: | viriketo |
| Comment: | Fix a comment in my previous commit. |
Tags And Properties
- branch=annotate_links inherited from [ef5d2176f9]
- sym-annotate_links inherited from [ef5d2176f9]
Changes
Changes to src/timeline.c
131 whitefg = db_get_boolean("white-foreground", 0); 131 whitefg = db_get_boolean("white-foreground", 0); 132 132 133 /* Calculate the hash based on the branch name */ 133 /* Calculate the hash based on the branch name */ 134 for( i=0; z[i]; i++ ){ 134 for( i=0; z[i]; i++ ){ 135 h = (h<<11) ^ (h<<1) ^ (h>>3) ^ z[i]; 135 h = (h<<11) ^ (h<<1) ^ (h>>3) ^ z[i]; 136 } 136 } 137 137 138 /* 4 different random values per component, between 31 and 127 */ | 138 /* 'cpc' different random values per component, between 'cmin' and 127 */ 139 r = cmin + (h % cpc) * cfactor; h /= cpc; 139 r = cmin + (h % cpc) * cfactor; h /= cpc; 140 g = cmin + (h % cpc) * cfactor; h /= cpc; 140 g = cmin + (h % cpc) * cfactor; h /= cpc; 141 b = cmin + (h % cpc) * cfactor; h /= cpc; 141 b = cmin + (h % cpc) * cfactor; h /= cpc; 142 142 143 /* In case of blackfg, get the inverse effect */ 143 /* In case of blackfg, get the inverse effect */ 144 if( !whitefg ) 144 if( !whitefg ) 145 { 145 {