root/trunk/core/gui_osd.c
| 546 | 551 | ||
|---|---|---|---|
1025 | void gui_osd_draw_temp() { | 1025 | void gui_osd_draw_temp() { |
1026 | if (conf.show_temp == 1) | 1026 | if (conf.show_temp == 1) |
1027 | { | 1027 | { |
1028 | if (conf.clock_format == 0) | 1028 | if (conf.temperature_unit == 0) |
1029 | { | 1029 | { |
1030 | sprintf(osd_buf," opt: %i°",get_optical_temp()); | 1030 | sprintf(osd_buf," opt: %i°",get_optical_temp()); |
1031 | } | 1031 | } |
... | ... | ||
1037 | } | 1037 | } |
1038 | if (conf.show_temp==2) | 1038 | if (conf.show_temp==2) |
1039 | { | 1039 | { |
1040 | if (conf.clock_format == 0) | 1040 | if (conf.temperature_unit == 0) |
1041 | { | 1041 | { |
1042 | sprintf(osd_buf," ccd: %i°",get_ccd_temp()); | 1042 | sprintf(osd_buf," ccd: %i°",get_ccd_temp()); |
1043 | } | 1043 | } |
... | ... | ||
1049 | } | 1049 | } |
1050 | if (conf.show_temp==3) | 1050 | if (conf.show_temp==3) |
1051 | { | 1051 | { |
1052 | if (conf.clock_format == 0) | 1052 | if (conf.temperature_unit == 0) |
1053 | { | 1053 | { |
1054 | sprintf(osd_buf," batt:%i°",get_battery_temp()); | 1054 | sprintf(osd_buf," batt:%i°",get_battery_temp()); |
1055 | } | 1055 | } |
... | ... | ||
1061 | } | 1061 | } |
1062 | if (conf.show_temp==4) | 1062 | if (conf.show_temp==4) |
1063 | { | 1063 | { |
1064 | if (conf.clock_format == 0) | 1064 | if (conf.temperature_unit == 0) |
1065 | { | 1065 | { |
1066 | sprintf(osd_buf," opt: %i°",get_optical_temp()); | 1066 | sprintf(osd_buf," opt: %i°",get_optical_temp()); |
1067 | draw_string(conf.temp_pos.x, conf.temp_pos.y, osd_buf, conf.osd_color); | 1067 | draw_string(conf.temp_pos.x, conf.temp_pos.y, osd_buf, conf.osd_color); |
Download diff