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