shithub: mpl

Download patch

ref: beec9be442f8bfe07e16b719f33bc4558cfed994
parent: 050d602a44f44ccc0fbcb0c55fd35e43d762470b
author: Jacob Moody <[email protected]>
date: Tue Dec 10 06:23:21 EST 2019

Change style

--- a/mpl.c
+++ b/mpl.c
@@ -29,6 +29,7 @@
 Image *black;
 Image *red;
 Image *background;
+Image *listbackground;
 
 int
 cleanup(void*,char*)
@@ -61,7 +62,7 @@
 	draw(screen, screen->r, background, nil, ZP);
 	recv(lout, &lib);
 	if(showlists) {
-		drawlists(p, black, red, background, clickin);
+		drawlists(p, black, red, listbackground, clickin);
 		p.x+=256;
 	}
 	drawlibrary(&lib, p, black, red, clickin);
@@ -84,6 +85,9 @@
 			return;
 		case 'w':
 			break;
+		case 's':
+			showlists = !showlists;
+			break;
 		case 'p':
 			msg = PAUSE;
 			send(ctl, &msg);
@@ -111,6 +115,9 @@
 		case 'd':
 			msg = DUMP;
 			send(ctl, &msg);
+			/* lib proc is waiting for us to give it a name */
+			enter("name?", buf, sizeof buf, mctl, kctl, nil);
+			sendp(loadc, buf);
 			break;
 		case 'o':
 			enter("Playlist?", buf, sizeof buf, mctl, kctl, nil);
@@ -187,7 +194,8 @@
 
 	red = allocimage(display, Rect(0, 0, 1, 1), screen->chan, 1, DBlue);
 	black = allocimage(display, Rect(0, 0, 1, 1), screen->chan, 1, DBlack);
-	background = allocimagemix(display, DPaleyellow, DPalegreen);
+	listbackground = allocimagemix(display, DPalebluegreen, DPalegreen);
+	background = allocimagemix(display, DYellow, DPalegreyblue);
 
 	eresized(0);