changeset 1060:3d9994033ae6 Icon_Integration

Added new format function '\007': With the new format function it is possible to devide a text line into colums a 50 pixel. This helps to display multiple informations on a single line like it is done in the gas list.
author Ideenmodellierer
date Sat, 07 Feb 2026 21:36:50 +0100
parents 73642758aa72
children f501d7c35c8f
files Discovery/Src/gfx_engine.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Discovery/Src/gfx_engine.c	Sun Feb 01 14:34:03 2026 +0100
+++ b/Discovery/Src/gfx_engine.c	Sat Feb 07 21:36:50 2026 +0100
@@ -2139,6 +2139,11 @@
 			if(*pText == '\r') // carriage return, no newline
 				settings.Xdelta = 0;
 			else
+			if((*pText == '\007')) /* jump to next 50 pixel offset */
+			{
+					settings.Xdelta = ((settings.Xdelta / 50) + 1) * 50;
+			}
+			else
 			if((*pText == '\001')) // center
 				settings.Xdelta = GFX_write__Modify_Xdelta__Centered(&settings, hgfx, pText+1);
 			else