Changes in uspace/lib/gui/canvas.c [10cb47e:00ddb40] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/gui/canvas.c
r10cb47e r00ddb40 123 123 } 124 124 125 bool init_canvas(canvas_t *canvas, widget_t *parent, const void *data,126 sysarg_t width, sysarg_theight, surface_t *surface)125 bool init_canvas(canvas_t *canvas, widget_t *parent, sysarg_t width, 126 sysarg_t height, surface_t *surface) 127 127 { 128 widget_init(&canvas->widget, parent , data);128 widget_init(&canvas->widget, parent); 129 129 130 130 canvas->widget.width = width; … … 161 161 } 162 162 163 canvas_t *create_canvas(widget_t *parent, const void *data, sysarg_t width,164 s ysarg_t height, surface_t *surface)163 canvas_t *create_canvas(widget_t *parent, sysarg_t width, sysarg_t height, 164 surface_t *surface) 165 165 { 166 166 canvas_t *canvas = (canvas_t *) malloc(sizeof(canvas_t)); … … 168 168 return NULL; 169 169 170 if (init_canvas(canvas, parent, data,width, height, surface))170 if (init_canvas(canvas, parent, width, height, surface)) 171 171 return canvas; 172 172
Note:
See TracChangeset
for help on using the changeset viewer.