Mercurial > public > ostc4
diff Discovery/Src/gfx_engine.c @ 593:3a6f922b73ea
Added PrintGraph option to skip invalid data entries:
The uint16_t max value 0xFFFF is used to initialize an data array which shall not be printed completly. Only the pixels representing a valid value shall be shown.
author | Ideenmodellierer |
---|---|
date | Mon, 04 Jan 2021 21:24:24 +0100 |
parents | 3860b8fa4b29 |
children | 82d58470fd94 |
line wrap: on
line diff
--- a/Discovery/Src/gfx_engine.c Sun Jan 03 14:43:16 2021 +0100 +++ b/Discovery/Src/gfx_engine.c Mon Jan 04 21:24:24 2021 +0100 @@ -1365,6 +1365,8 @@ // { //output_content[pointer] = colormask; //output_mask[pointer] = true; + if(dataTemp != 0xFFFF) /* do not draw invalid data pixels */ + { if(w1 > 0) { pDestination_start = (uint16_t*)hgfx->FBStartAdress; @@ -1462,7 +1464,7 @@ } } h_ulong_old = h_ulong; -// } + } w1++; w2++; }