mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
fixed indentation
Signed-off-by: Maximilian Güntner <maximilian.guentner@gmail.com>
This commit is contained in:
parent
b7ae9ad5b1
commit
0a7fa8ea50
1 changed files with 24 additions and 27 deletions
|
@ -189,8 +189,7 @@ static void dump_pi (struct plot_info *pi)
|
|||
static int get_maxtime(struct plot_info *pi)
|
||||
{
|
||||
int seconds = pi->maxtime;
|
||||
if (seconds < 600)
|
||||
{
|
||||
if (seconds < 600) {
|
||||
/* Possible apnea dive, we scale accordingly */
|
||||
return ROUND_UP(seconds+seconds/4, 60);
|
||||
} else {
|
||||
|
@ -458,8 +457,7 @@ static void plot_depth_profile(struct graphics_context *gc, struct plot_info *pi
|
|||
maxdepth = get_maxdepth(pi);
|
||||
/* We check whether this has been an apnea dive and overwrite
|
||||
* the increments in order to get reasonable time markers */
|
||||
if (maxtime < 600)
|
||||
{
|
||||
if (maxtime < 600) {
|
||||
increments[0] = 10;
|
||||
increments[1] = 20;
|
||||
increments[2] = 30;
|
||||
|
@ -491,8 +489,7 @@ static void plot_depth_profile(struct graphics_context *gc, struct plot_info *pi
|
|||
|
||||
/* now the text on the time markers */
|
||||
text_render_options_t tro = {10, TIME_TEXT, CENTER, TOP};
|
||||
if (maxtime < 600)
|
||||
{
|
||||
if (maxtime < 600) {
|
||||
/* Be a bit more verbose with shorter (apnea) dives */
|
||||
for (i = incr; i < maxtime; i += incr)
|
||||
plot_text(gc, &tro, i, 1, "%d:%d", i/60, i%60);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue