comparison Discovery/Src/show_logbook.c @ 150:097d7146b779 FlipDisplay

Place CNS and pressure within the screen (avoid clipping)
author Ideenmodellierer
date Sat, 02 Mar 2019 17:42:51 +0100
parents 3834b6272ee5
children 255eedad4155
comparison
equal deleted inserted replaced
149:e1d66bc78f9a 150:097d7146b779
640 640
641 Gfx_write_label_var(hgfx, start, 300,top, &FontT42,CLUT_GasSensor4,text); 641 Gfx_write_label_var(hgfx, start, 300,top, &FontT42,CLUT_GasSensor4,text);
642 642
643 // CNS 643 // CNS
644 snprintf(text,20,"CNS: %i %%",logbookHeader.maxCNS); 644 snprintf(text,20,"CNS: %i %%",logbookHeader.maxCNS);
645 Gfx_write_label_var(hgfx, 30, 250,750, &FontT42,CLUT_GasSensor1,text); 645 Gfx_write_label_var(hgfx, 30, 250,440, &FontT42,CLUT_GasSensor1,text);
646 646
647 // Surface Pressure 647 // Surface Pressure
648 // snprintf(text,20,"\001%i\016\016 mbar",logbookHeader.surfacePressure_mbar); 648 // snprintf(text,20,"\001%i\016\016 mbar",logbookHeader.surfacePressure_mbar);
649 // Gfx_write_label_var(hgfx,300,500,750, &FontT42,CLUT_GasSensor1,text); 649 // Gfx_write_label_var(hgfx,300,500,750, &FontT42,CLUT_GasSensor1,text);
650 // snprintf(text,40,"%i\016\016 mbar\017 (%i\016\016 m\017)",logbookHeader.surfacePressure_mbar, unit_SeaLevelRelation_integer(logbookHeader.surfacePressure_mbar)); 650 // snprintf(text,40,"%i\016\016 mbar\017 (%i\016\016 m\017)",logbookHeader.surfacePressure_mbar, unit_SeaLevelRelation_integer(logbookHeader.surfacePressure_mbar));
651 snprintf(text,40,"%i\016\016 hPa\017",logbookHeader.surfacePressure_mbar); 651 snprintf(text,40,"%i\016\016 hPa\017",logbookHeader.surfacePressure_mbar);
652 Gfx_write_label_var(hgfx,320,600,750, &FontT42,CLUT_GasSensor1,text); 652 Gfx_write_label_var(hgfx,320,600,440, &FontT42,CLUT_GasSensor1,text);
653 653
654 654
655 //--- print coordinate system & depth graph with gaschanges --- 655 //--- print coordinate system & depth graph with gaschanges ---
656 wintemp.left = 330; 656 wintemp.left = 330;
657 wintemp.top = 160; 657 wintemp.top = 160;