Changeset 8ce56a6 in mainline for uspace/lib/ui/src/window.c
- Timestamp:
- 2021-09-07T08:53:42Z (3 years ago)
- Branches:
- master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ebb3538
- Parents:
- a0aeb8f
- git-author:
- Jiri Svoboda <jiri@…> (2021-09-06 17:53:32)
- git-committer:
- Jiri Svoboda <jiri@…> (2021-09-07 08:53:42)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/window.c
ra0aeb8f r8ce56a6 205 205 gfx_bitmap_alloc_t alloc; 206 206 gfx_bitmap_t *bmp = NULL; 207 gfx_coord2_t off; 207 208 mem_gc_t *memgc = NULL; 209 xlate_gc_t *xgc = NULL; 208 210 errno_t rc; 209 211 … … 297 299 window->gc = mem_gc_get_ctx(memgc); 298 300 window->realgc = gc; 301 (void) off; 299 302 #else 303 /* Server-side rendering */ 304 305 /* Full-screen mode? */ 306 if (ui->display == NULL) { 307 /* Create translating GC to translate window contents */ 308 off.x = 0; 309 off.y = 0; 310 rc = xlate_gc_create(&off, gc, &xgc); 311 if (rc != EOK) 312 goto error; 313 314 window->xgc = xgc; 315 window->gc = xlate_gc_get_ctx(xgc); 316 window->realgc = gc; 317 } else { 318 window->gc = gc; 319 } 320 300 321 (void) ui_window_mem_gc_cb; 301 322 (void) alloc; 302 323 (void) bparams; 303 window->gc = gc;304 324 #endif 305 if (ui->display == NULL) 325 if (ui->display == NULL) { 306 326 ui_window_place(window, &ui->rect, params, &window->dpos); 327 FILE *f = fopen("/tmp/x", "at"); 328 fprintf(f, "xlate_gc_set_off: %d,%d\n", 329 window->dpos.x, window->dpos.y); 330 fclose(f); 331 332 if (window->xgc != NULL) 333 xlate_gc_set_off(window->xgc, &window->dpos); 334 } 307 335 308 336 rc = ui_resource_create(window->gc, ui_is_textmode(ui), &res); … … 335 363 if (memgc != NULL) 336 364 mem_gc_delete(memgc); 365 if (xgc != NULL) 366 xlate_gc_delete(xgc); 337 367 if (bmp != NULL) 338 368 gfx_bitmap_destroy(bmp);
Note:
See TracChangeset
for help on using the changeset viewer.