Changeset 2ab8ab3 in mainline for uspace/srv
- Timestamp:
- 2021-02-16T18:12:05Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 68a552f
- Parents:
- ef734b7
- Location:
- uspace/srv/hid/display
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/display/display.c
ref734b7 r2ab8ab3 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 *); 53 54 54 55 /** Create display. … … 459 460 460 461 rc = mem_gc_create(&disp->rect, &alloc, 461 ds_display_update_cb, (void *) disp, &disp->bbgc); 462 ds_display_invalidate_cb, ds_display_update_cb, (void *) disp, 463 &disp->bbgc); 462 464 if (rc != EOK) 463 465 goto error; … … 732 734 } 733 735 734 /** Display update callback.736 /** Display invalidate callback. 735 737 * 736 738 * Called by backbuffer memory GC when something is rendered into it. … … 740 742 * @param rect Rectangle to update 741 743 */ 742 static void ds_display_ update_cb(void *arg, gfx_rect_t *rect)744 static void ds_display_invalidate_cb(void *arg, gfx_rect_t *rect) 743 745 { 744 746 ds_display_t *disp = (ds_display_t *) arg; … … 749 751 } 750 752 753 /** Display update callback. 754 * 755 * @param arg Argument (display cast as void *) 756 */ 757 static void ds_display_update_cb(void *arg) 758 { 759 ds_display_t *disp = (ds_display_t *) arg; 760 761 (void) disp; 762 } 763 751 764 /** @} 752 765 */ -
uspace/srv/hid/display/window.c
ref734b7 r2ab8ab3 49 49 #include "window.h" 50 50 51 static void ds_window_update_cb(void *, gfx_rect_t *); 51 static void ds_window_invalidate_cb(void *, gfx_rect_t *); 52 static void ds_window_update_cb(void *); 52 53 static void ds_window_get_preview_rect(ds_window_t *, gfx_rect_t *); 53 54 … … 106 107 } 107 108 108 rc = mem_gc_create(¶ms->rect, &alloc, ds_window_ update_cb,109 (void *)wnd, &wnd->mgc);109 rc = mem_gc_create(¶ms->rect, &alloc, ds_window_invalidate_cb, 110 ds_window_update_cb, (void *)wnd, &wnd->mgc); 110 111 if (rc != EOK) 111 112 goto error; … … 789 790 } 790 791 791 /** Window memory GC update callback.792 * 793 * This is called by the window's memory GC when a rectangle us updated.794 */ 795 static void ds_window_ update_cb(void *arg, gfx_rect_t *rect)792 /** Window memory GC invalidate callback. 793 * 794 * This is called by the window's memory GC when a rectangle is modified. 795 */ 796 static void ds_window_invalidate_cb(void *arg, gfx_rect_t *rect) 796 797 { 797 798 ds_window_t *wnd = (ds_window_t *)arg; … … 806 807 } 807 808 809 /** Window memory GC update callback. 810 * 811 * This is called by the window's memory GC when it is to be updated. 812 */ 813 static void ds_window_update_cb(void *arg) 814 { 815 ds_window_t *wnd = (ds_window_t *)arg; 816 817 (void) wnd; 818 } 819 808 820 /** @} 809 821 */
Note:
See TracChangeset
for help on using the changeset viewer.