Add some motion so I can tell that graphics are working

This commit is contained in:
Brian Anderson 2012-05-03 21:52:08 -07:00
parent 6b78b03065
commit 04575529ad
2 changed files with 4 additions and 3 deletions

View file

@ -49,12 +49,13 @@ fn layout_dom(dom: node) -> @base::box {
}
fn build_display_list(_box: @base::box) -> display_list::display_list {
let r = core::rand::rng();
[
display_item({
item_type: solid_color,
bounds: geom::box(
int_to_au(0),
int_to_au(0),
int_to_au(r.next() as int % 800),
int_to_au(r.next() as int % 600),
int_to_au(100),
int_to_au(100))
}),

View file

@ -40,7 +40,7 @@ fn main(args: [str]) {
loop {
send(layout, layout::layout::build);
std::timer::sleep(10u);
std::timer::sleep(200u);
if peek(key_po) {
comm::send(layout, layout::layout::exit);