cnping

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

commit 45945d12a3fdd62a8f14340fb41443a3368c8ce7
parent 3e5e492825d0ad12c4d538fcd5f9d2962d10a2b5
Author: CNLohr <charles@cnlohr.com>
Date:   Tue, 27 Sep 2016 10:48:47 -0400

Merge pull request #9 from brookst/pixel_render

Fix rendering of 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.