git: 9front

Download patch

ref: f1082fb1fed2a59d9685bc910ca37b9f882a5055
parent: 3fbd9f07c8ce1a8fe1910d2edf71cda3dcf5703e
author: stanley lieber <stanley.lieber@gmail.com>
date: Sat Apr 30 14:03:18 EDT 2011

libframe: derive attributes of cursor from rio instead of hardcoding them.

--- a/sys/src/libframe/frinit.c
+++ b/sys/src/libframe/frinit.c
@@ -50,7 +50,7 @@
 	/* background color */
 	draw(f->tick, f->tick->r, f->cols[BACK], nil, ZP);
 	/* vertical line */
-	draw(f->tick, Rect(FRTICKW/2, 0, FRTICKW/2+1, ft->height), f->display->black, nil, ZP);
+	draw(f->tick, Rect(FRTICKW/2, 0, FRTICKW/2+1, ft->height), f->cols[TEXT], nil, ZP);
 	/* box on each end */
 	draw(f->tick, Rect(0, 0, FRTICKW, FRTICKW), f->cols[TEXT], nil, ZP);
 	draw(f->tick, Rect(0, ft->height-FRTICKW, FRTICKW, ft->height), f->cols[TEXT], nil, ZP);
--