Changeset 22faaf2 in mainline for uspace/srv/hid/display/window.c
- Timestamp:
- 2019-10-29T02:34:14Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b3c185b6
- Parents:
- 587b4cb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/display/window.c
r587b4cb r22faaf2 90 90 { 91 91 ds_window_t *wnd = (ds_window_t *) arg; 92 gfx_rect_t drect; 92 93 93 94 log_msg(LOG_DEFAULT, LVL_NOTE, "gc_fill_rect"); 94 return gfx_fill_rect(wnd->display->gc, rect); 95 gfx_rect_translate(&wnd->dpos, rect, &drect); 96 return gfx_fill_rect(wnd->display->gc, &drect); 95 97 } 96 98 … … 152 154 { 153 155 ds_window_bitmap_t *cbm = (ds_window_bitmap_t *)bm; 154 155 return gfx_bitmap_render(cbm->bitmap, srect0, offs0); 156 gfx_coord2_t doffs; 157 158 if (offs0 != NULL) 159 gfx_coord2_add(&cbm->wnd->dpos, offs0, &doffs); 160 else 161 doffs = cbm->wnd->dpos; 162 163 return gfx_bitmap_render(cbm->bitmap, srect0, &doffs); 156 164 } 157 165
Note:
See TracChangeset
for help on using the changeset viewer.