solid_color -> display_item_solid_color (preparation for display_item_image)

This commit is contained in:
Patrick Walton 2012-05-24 19:08:49 -07:00
parent c4111d11b8
commit a6fe64d761
3 changed files with 5 additions and 5 deletions

View file

@ -54,7 +54,7 @@ fn draw_display_list(
for display_list.each {|item| for display_list.each {|item|
#debug["drawing %?", item]; #debug["drawing %?", item];
let (r, g, b) = alt check item.item_type { let (r, g, b) = alt check item.item_type {
dl::solid_color(r, g, b) { (r, g, b) } dl::display_item_solid_color(r, g, b) { (r, g, b) }
}; };
let bounds = (*item).bounds; let bounds = (*item).bounds;

View file

@ -1,7 +1,7 @@
import gfx::geom::*; import gfx::geom::*;
enum item_type { enum item_type {
solid_color(u8, u8, u8), display_item_solid_color(u8, u8, u8),
// FIXME: Shape code does not understand the alignment without this // FIXME: Shape code does not understand the alignment without this
padding(u8, u8, u8, u8) padding(u8, u8, u8, u8)
} }

View file

@ -63,9 +63,9 @@ fn build_display_list(box: @base::box) -> display_list::display_list {
fn box_to_display_item(box: @base::box) -> dl::display_item { fn box_to_display_item(box: @base::box) -> dl::display_item {
let r = rand::rng(); let r = rand::rng();
let item = dl::display_item({ let item = dl::display_item({
item_type: dl::solid_color(r.next() as u8, item_type: dl::display_item_solid_color(r.next() as u8,
r.next() as u8, r.next() as u8,
r.next() as u8), r.next() as u8),
bounds: box.bounds bounds: box.bounds
}); });
#debug("layout: display item: %?", item); #debug("layout: display item: %?", item);