Changes in uspace/lib/congfx/src/console.c [a4e4e29:211fd68] in mainline
- File:
-
- 1 edited
-
uspace/lib/congfx/src/console.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/congfx/src/console.c
ra4e4e29 r211fd68 314 314 } 315 315 316 /** Update console GC size after console resize.317 *318 * @param con Console object319 *320 * @return EOK on success or an error code321 */322 errno_t console_gc_resize(console_gc_t *cgc)323 {324 sysarg_t rows;325 sysarg_t cols;326 charfield_t *buf = NULL;327 errno_t rc;328 329 console_unmap(cgc->con, cgc->buf);330 cgc->buf = NULL;331 332 rc = console_get_size(cgc->con, &cols, &rows);333 if (rc != EOK)334 goto error;335 336 rc = console_map(cgc->con, cols, rows, &buf);337 if (rc != EOK)338 goto error;339 340 cgc->rect.p0.x = 0;341 cgc->rect.p0.y = 0;342 cgc->rect.p1.x = cols;343 cgc->rect.p1.y = rows;344 cgc->clip_rect = cgc->rect;345 cgc->buf = buf;346 return EOK;347 error:348 return rc;349 }350 351 352 316 /** Get generic graphic context from console GC. 353 317 *
Note:
See TracChangeset
for help on using the changeset viewer.
