Changeset 1286
- Timestamp:
- 08/08/11 19:52:07 (23 months ago)
- File:
-
- 1 edited
-
trunk/core/gui_space.c (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/gui_space.c
r1234 r1286 21 21 coord x; 22 22 register coord xx, yy; 23 23 24 24 xx = conf.space_hor_pos.x; 25 25 yy = conf.space_hor_pos.y; … … 30 30 if (conf.space_warn_type == 0) { 31 31 cl = (perc<=conf.space_perc_warn)?conf.osd_color_warn:(conf.space_color); 32 } 33 if (conf.space_warn_type == 1) { 34 cl = (GetFreeCardSpaceKb()/1024<=conf.space_mb_warn)?conf.osd_color_warn:(conf.space_color); 35 } 36 if (conf.space_warn_type == 2) { 32 } else if (conf.space_warn_type == 1) { 33 cl = (GetFreeCardSpaceKb()/1024<=conf.space_mb_warn)?conf.osd_color_warn:(conf.space_color); 34 } else if (conf.space_warn_type == 2) { 37 35 cl = conf.space_color; 38 36 } … … 44 42 xx = screen_width-size; 45 43 } 46 } 47 if (conf.space_bar_size == 1) { 44 } else if (conf.space_bar_size == 1) { 48 45 size = screen_width/2-4; 49 46 if (xx>(screen_width-size)) { 50 47 xx = screen_width-size; 51 48 } 52 } 53 if (conf.space_bar_size == 2) { 49 } else if (conf.space_bar_size == 2) { 54 50 size = screen_width-4; 55 51 if (xx>(screen_width-size)) { … … 78 74 coord y; 79 75 register coord xx, yy; 80 76 81 77 xx = conf.space_ver_pos.x; 82 78 yy = conf.space_ver_pos.y; … … 87 83 if (conf.space_warn_type == 0) { 88 84 cl = (perc<=conf.space_perc_warn)?conf.osd_color_warn:(conf.space_color); 89 } 90 if (conf.space_warn_type == 1) { 91 cl = (GetFreeCardSpaceKb()/1024<=conf.space_mb_warn)?conf.osd_color_warn:(conf.space_color); 92 } 93 if (conf.space_warn_type == 2) { 85 } else if (conf.space_warn_type == 1) { 86 cl = (GetFreeCardSpaceKb()/1024<=conf.space_mb_warn)?conf.osd_color_warn:(conf.space_color); 87 } else if (conf.space_warn_type == 2) { 94 88 cl = conf.space_color; 95 89 } … … 102 96 yy = screen_height-size; 103 97 } 104 } 105 if (conf.space_bar_size == 1) { 98 } else if (conf.space_bar_size == 1) { 106 99 size = screen_height/2-4; 107 100 if (yy>(screen_height-size)) { 108 101 yy = screen_height-size; 109 102 } 110 } 111 if (conf.space_bar_size == 2) { 103 } else if (conf.space_bar_size == 2) { 112 104 size = screen_height-4; 113 105 if (yy>(screen_height-size)) { … … 135 127 coord x; 136 128 register coord xx, yy; 137 129 138 130 xx = conf.space_icon_pos.x; 139 131 yy = conf.space_icon_pos.y; … … 143 135 if (conf.space_warn_type == 0) { 144 136 cl = (perc<=conf.space_perc_warn)?conf.osd_color_warn:(conf.space_color); 145 } 146 if (conf.space_warn_type == 1) { 147 cl = (GetFreeCardSpaceKb()/1024<=conf.space_mb_warn)?conf.osd_color_warn:(conf.space_color); 148 } 149 if (conf.space_warn_type == 2) { 137 } else if (conf.space_warn_type == 1) { 138 cl = (GetFreeCardSpaceKb()/1024<=conf.space_mb_warn)?conf.osd_color_warn:(conf.space_color); 139 } else if (conf.space_warn_type == 2) { 150 140 cl = conf.space_color; 151 141 } … … 193 183 if (conf.space_warn_type == 0) { 194 184 cl = (perc<=conf.space_perc_warn)?conf.osd_color_warn:(conf.space_color); 195 } 196 if (conf.space_warn_type == 1) { 197 cl = (GetFreeCardSpaceKb()/1024<=conf.space_mb_warn)?conf.osd_color_warn:(conf.space_color); 198 } 199 if (conf.space_warn_type == 2) { 185 } else if (conf.space_warn_type == 1) { 186 cl = (GetFreeCardSpaceKb()/1024<=conf.space_mb_warn)?conf.osd_color_warn:(conf.space_color); 187 } else if (conf.space_warn_type == 2) { 200 188 cl = conf.space_color; 201 189 } … … 211 199 if (conf.space_warn_type == 0) { 212 200 cl = (perc<=conf.space_perc_warn)?conf.osd_color_warn:(conf.space_color); 213 } 214 if (conf.space_warn_type == 1) { 215 cl = (GetFreeCardSpaceKb()/1024<=conf.space_mb_warn)?conf.osd_color_warn:(conf.space_color); 216 } 217 if (conf.space_warn_type == 2) { 201 } else if (conf.space_warn_type == 1) { 202 cl = (GetFreeCardSpaceKb()/1024<=conf.space_mb_warn)?conf.osd_color_warn:(conf.space_color); 203 } else if (conf.space_warn_type == 2) { 218 204 cl = conf.space_color; 219 205 } … … 238 224 if (conf.space_bar_show==1) { 239 225 gui_space_draw_spacebar_horizontal(); 240 } 241 if (conf.space_bar_show==2) { 226 } else if (conf.space_bar_show==2) { 242 227 gui_space_draw_spacebar_vertical(); 243 228 }
Note: See TracChangeset
for help on using the changeset viewer.