Remove debug artifacts

And bring back the shadows!
This commit is contained in:
Alexandre Bury 2016-10-09 17:42:57 -07:00
parent 078a966381
commit 651c7d619b
2 changed files with 2 additions and 6 deletions

View File

@ -107,11 +107,7 @@ impl<'a> Printer<'a> {
let text: String = ::std::iter::repeat(c).take(len).collect(); let text: String = ::std::iter::repeat(c).take(len).collect();
let p = p + self.offset; let p = p + self.offset;
// self.backend.print_at((p.x, p.y), &text); self.backend.print_at((p.x, p.y), &text);
self.print(p, &text);
for x in 0..len {
self.backend.print_at((p.x + x, p.y), c);
}
} }
/// Call the given closure with a colored printer, /// Call the given closure with a colored printer,

View File

@ -80,7 +80,7 @@ impl<T: View> ViewWrapper for ShadowView<T> {
printer.size - (1, 1), printer.size - (1, 1),
true)); true));
if printer.theme.shadow && false { if printer.theme.shadow {
let h = printer.size.y; let h = printer.size.y;
let w = printer.size.x; let w = printer.size.x;