Changeset b3c185b6 in mainline for uspace/srv/hid/display/window.c
- Timestamp:
- 2019-11-04T14:05:35Z (4 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- be15256
- Parents:
- 22faaf2
- git-author:
- Jiri Svoboda <jiri@…> (2019-10-03 18:05:09)
- git-committer:
- Jiri Svoboda <jiri@…> (2019-11-04 14:05:35)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/display/window.c
r22faaf2 rb3c185b6 43 43 #include <io/log.h> 44 44 #include <stdlib.h> 45 #include "client.h" 45 46 #include "display.h" 46 47 #include "window.h" … … 76 77 ds_window_t *wnd = (ds_window_t *) arg; 77 78 78 log_msg(LOG_DEFAULT, LVL_NOTE, "gc_set_color ");79 return gfx_set_color(wnd-> display->gc, color);79 log_msg(LOG_DEFAULT, LVL_NOTE, "gc_set_color gc=%p", wnd->client->display->gc); 80 return gfx_set_color(wnd->client->display->gc, color); 80 81 } 81 82 … … 94 95 log_msg(LOG_DEFAULT, LVL_NOTE, "gc_fill_rect"); 95 96 gfx_rect_translate(&wnd->dpos, rect, &drect); 96 return gfx_fill_rect(wnd-> display->gc, &drect);97 return gfx_fill_rect(wnd->client->display->gc, &drect); 97 98 } 98 99 … … 116 117 return ENOMEM; 117 118 118 rc = gfx_bitmap_create(wnd->display->gc, params, alloc, &cbm->bitmap); 119 rc = gfx_bitmap_create(wnd->client->display->gc, params, alloc, 120 &cbm->bitmap); 119 121 if (rc != EOK) 120 122 goto error; … … 181 183 * Create graphics context for rendering into a window. 182 184 * 183 * @param disp Display to create window on185 * @param client Client owning the window 184 186 * @param rgc Place to store pointer to new GC. 185 187 * 186 188 * @return EOK on success or an error code 187 189 */ 188 errno_t ds_window_create(ds_ display_t *disp, ds_window_t **rgc)190 errno_t ds_window_create(ds_client_t *client, ds_window_t **rgc) 189 191 { 190 192 ds_window_t *wnd = NULL; … … 202 204 goto error; 203 205 204 ds_ display_add_window(disp, wnd);206 ds_client_add_window(client, wnd); 205 207 206 208 wnd->gc = gc; … … 222 224 errno_t rc; 223 225 224 ds_ display_remove_window(wnd);226 ds_client_remove_window(wnd); 225 227 226 228 rc = gfx_context_delete(wnd->gc);
Note:
See TracChangeset
for help on using the changeset viewer.