shithub: dpaint

Download patch

ref: f585b0a86cdefdc185e562d284bebde7e7d71bd7
parent: 363056d387d355804f182d3161c63aa3b56d313f
author: Clay Ayers <thedaemon@thedaemons.space>
date: Thu Dec 14 22:22:59 EST 2023

test

--- a/0paint.c
+++ b/0paint.c
@@ -6,6 +6,7 @@
 #include <libc.h>
 #include <draw.h>
 #include <event.h>
+#include <keyboard.h>
 
 void
 main(void)
@@ -29,7 +30,7 @@
 			     m.xy, Enddisc, Enddisc, eraser, display->white, ZP);
 			prevm = m.xy;
 		} 
-		if(m.buttons & 1) { /* Paint Function  ? : is if else true and false*/
+		if(m.buttons & 1) { /* Paint Function  ? : means this if else true and false*/
 			line(screen,
 			     prevm.x == -1 ? m.xy : prevm,
 			     m.xy, Enddisc, Enddisc, brush, display->black, ZP); /* ZP is a constant point (0,0) */