Changes in uspace/srv/hid/display/display.c [195b7b3:1215db9] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/display/display.c
r195b7b3 r1215db9 1 1 /* 2 * Copyright (c) 20 19Jiri Svoboda2 * Copyright (c) 2021 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 50 50 51 51 static gfx_context_t *ds_display_get_unbuf_gc(ds_display_t *); 52 static void ds_display_update_cb(void *, gfx_rect_t *); 52 static void ds_display_invalidate_cb(void *, gfx_rect_t *); 53 static void ds_display_update_cb(void *); 54 55 static mem_gc_cb_t ds_display_mem_gc_cb = { 56 .invalidate = ds_display_invalidate_cb, 57 .update = ds_display_update_cb 58 }; 53 59 54 60 /** Create display. … … 458 464 goto error; 459 465 460 rc = mem_gc_create(&disp->rect, &alloc, 461 ds_display_update_cb,(void *) disp, &disp->bbgc);466 rc = mem_gc_create(&disp->rect, &alloc, &ds_display_mem_gc_cb, 467 (void *) disp, &disp->bbgc); 462 468 if (rc != EOK) 463 469 goto error; … … 732 738 } 733 739 734 /** Display update callback.740 /** Display invalidate callback. 735 741 * 736 742 * Called by backbuffer memory GC when something is rendered into it. … … 740 746 * @param rect Rectangle to update 741 747 */ 742 static void ds_display_ update_cb(void *arg, gfx_rect_t *rect)748 static void ds_display_invalidate_cb(void *arg, gfx_rect_t *rect) 743 749 { 744 750 ds_display_t *disp = (ds_display_t *) arg; … … 749 755 } 750 756 757 /** Display update callback. 758 * 759 * @param arg Argument (display cast as void *) 760 */ 761 static void ds_display_update_cb(void *arg) 762 { 763 ds_display_t *disp = (ds_display_t *) arg; 764 765 (void) disp; 766 } 767 751 768 /** @} 752 769 */
Note:
See TracChangeset
for help on using the changeset viewer.