cnping

Minimal Graphical Ping Tool
git clone https://git.sinitax.com/cnlohr/cnping
Log | Files | Refs | Submodules | README | LICENSE | sfeed.txt

commit 7e2d320c966ecc74d92b0806b4cee70705ef2289
parent 070b2ec278a41960ac503cec9d475ec5f8a49fc6
Author: Tim Brooks <brooks@cern.ch>
Date:   Mon, 26 Sep 2016 15:06:30 +0200

Fix rendering single pixels

Diffstat:
MDrawFunctions.c | 6+++++-
Mcnping.png | 0
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/DrawFunctions.c b/DrawFunctions.c @@ -208,7 +208,11 @@ void CNFGDrawText( const char * text, int scale ) int x2 = (int)((((*(lmap+1)) & 0x70)>>4)*scale + iox); int y2 = (int)(((*(lmap+1)) & 0x0f)*scale + ioy); lmap++; - CNFGTackSegment( x1, y1, x2, y2 ); + if(x1 == x2 && y1 == y2){ + CNFGTackPixel( x1, y1 ); + } else { + CNFGTackSegment( x1, y1, x2, y2 ); + } bQuit = *lmap & 0x80; lmap++; } while( !bQuit ); diff --git a/cnping.png b/cnping.png Binary files differ.