Changes in uspace/drv/fb/kfb/port.c [7470d97:6d527cff] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/fb/kfb/port.c
r7470d97 r6d527cff 1 1 /* 2 * Copyright (c) 20 21Jiri Svoboda2 * Copyright (c) 2019 Jiri Svoboda 3 3 * Copyright (c) 2006 Jakub Vana 4 4 * Copyright (c) 2006 Ondrej Palkovsky … … 69 69 sysarg_t paddr; 70 70 gfx_rect_t rect; 71 gfx_rect_t clip_rect;72 71 size_t offset; 73 72 size_t scanline; … … 98 97 static errno_t kfb_ddev_get_info(void *, ddev_info_t *); 99 98 100 static errno_t kfb_gc_set_clip_rect(void *, gfx_rect_t *);101 99 static errno_t kfb_gc_set_color(void *, gfx_color_t *); 102 100 static errno_t kfb_gc_fill_rect(void *, gfx_rect_t *); … … 113 111 114 112 static gfx_context_ops_t kfb_gc_ops = { 115 .set_clip_rect = kfb_gc_set_clip_rect,116 113 .set_color = kfb_gc_set_color, 117 114 .fill_rect = kfb_gc_fill_rect, … … 137 134 ddev_info_init(info); 138 135 info->rect = kfb->rect; 139 return EOK;140 }141 142 /** Set clipping rectangle on KFB.143 *144 * @param arg KFB145 * @param rect Rectangle or @c NULL146 *147 * @return EOK on success or an error code148 */149 static errno_t kfb_gc_set_clip_rect(void *arg, gfx_rect_t *rect)150 {151 kfb_t *kfb = (kfb_t *) arg;152 153 if (rect != NULL)154 gfx_rect_clip(rect, &kfb->rect, &kfb->clip_rect);155 else156 kfb->clip_rect = kfb->rect;157 158 136 return EOK; 159 137 } … … 383 361 } 384 362 363 #include <stdio.h> 385 364 static void kfb_client_conn(ipc_call_t *icall, void *arg) 386 365 { … … 393 372 kfb = (kfb_t *) ddf_fun_data_get((ddf_fun_t *) arg); 394 373 374 printf("kfb_client_conn arg2=%lu arg3=%lu arg4=%lu\n", 375 (unsigned long) ipc_get_arg2(icall), 376 (unsigned long) ipc_get_arg3(icall), 377 (unsigned long) ipc_get_arg4(icall)); 378 395 379 gc_id = ipc_get_arg3(icall); 396 380 … … 466 450 467 451 if (!present) { 452 ddf_fun_destroy(fun); 468 453 rc = ENOENT; 469 454 goto error; … … 516 501 kfb->rect.p1.x = width; 517 502 kfb->rect.p1.y = height; 518 519 kfb->clip_rect = kfb->rect;520 503 521 504 kfb->paddr = paddr;
Note:
See TracChangeset
for help on using the changeset viewer.