commit be5d6d3

Michael Forney  ·  2013-07-25 06:43:38 +0000 UTC
parent bd5e82a
default_fill_region: Call interface method directly
1 files changed,  +4, -3
+4, -3
 1@@ -34,9 +34,10 @@ void default_fill_region(struct wld_drawable * drawable, uint32_t color,
 2 
 3     for (index = 0; index < num_boxes; ++index)
 4     {
 5-        wld_fill_rectangle(drawable, color, boxes[index].x1, boxes[index].y1,
 6-                           boxes[index].x2 - boxes[index].x1,
 7-                           boxes[index].y2 - boxes[index].y1);
 8+        drawable->interface->fill_rectangle
 9+            (drawable, color, boxes[index].x1, boxes[index].y1,
10+             boxes[index].x2 - boxes[index].x1,
11+             boxes[index].y2 - boxes[index].y1);
12     }
13 }
14