Changeset f126c87 in mainline for uspace/lib/gui/canvas.c
- Timestamp:
- 2016-09-01T16:46:27Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2a2fbc8
- Parents:
- 9befb0d (diff), bdfdc51c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/gui/canvas.c
r9befb0d rf126c87 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.