2 * (c) 2009 Alexander Warg <warg@os.inf.tu-dresden.de>
3 * economic rights: Technische Universität Dresden (Germany)
5 * This file is part of TUD:OS and distributed under the terms of the
6 * GNU General Public License 2.
7 * Please see the COPYING-GPL-2 file for details.
9 #include <l4/mag-gfx/canvas>
14 Canvas::draw_rect(Rect const &r, Rgba32::Color color, int width)
18 t = r - r.offset(width, width, -width, -width);
20 t = r.offset(width, width, -width, -width) - r;
22 draw_box(t[0], color);
23 draw_box(t[1], color);
24 draw_box(t[2], color);
25 draw_box(t[3], color);