mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Add some motion so I can tell that graphics are working
This commit is contained in:
parent
6b78b03065
commit
04575529ad
2 changed files with 4 additions and 3 deletions
|
@ -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))
|
||||
}),
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue