Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(430)

Unified Diff: include/lib/gfx.h

Issue 1411033002: Add basic line drawing command (Closed) Base URL: https://github.com/travisg/lk.git@master
Patch Set: fixes Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | lib/gfx/gfx.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/lib/gfx.h
diff --git a/include/lib/gfx.h b/include/lib/gfx.h
index 64861dd505ad1858cf5fcad4328145d6e9f7131b..a1745e5eeaf9cd10c8bfc658ba4875c9460dff98 100644
--- a/include/lib/gfx.h
+++ b/include/lib/gfx.h
@@ -77,6 +77,9 @@ void gfx_fillrect(gfx_surface *surface, uint x, uint y, uint width, uint height,
// draw a pixel at x, y in the surface
void gfx_putpixel(gfx_surface *surface, uint x, uint y, uint color);
+// draw a single pixel line between x1,y1 and x2,y1
+void gfx_line(gfx_surface *surface, uint x1, uint y1, uint x2, uint y2, uint color);
+
// clear the entire surface with a color
static inline void gfx_clear(gfx_surface *surface, uint color)
{
« no previous file with comments | « no previous file | lib/gfx/gfx.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698