Changeset a4e4e29 in mainline for uspace/lib/congfx/src/console.c
- Timestamp:
- 2026-02-17T11:57:13Z (4 days ago)
- Branches:
- master
- Children:
- 2c12135
- Parents:
- 00d26202
- git-author:
- Jiri Svoboda <jiri@…> (2026-02-17 18:56:50)
- git-committer:
- Jiri Svoboda <jiri@…> (2026-02-17 11:57:13)
- File:
-
- 1 edited
-
uspace/lib/congfx/src/console.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/congfx/src/console.c
r00d26202 ra4e4e29 314 314 } 315 315 316 /** Update console GC size after console resize. 317 * 318 * @param con Console object 319 * 320 * @return EOK on success or an error code 321 */ 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 316 352 /** Get generic graphic context from console GC. 317 353 *
Note:
See TracChangeset
for help on using the changeset viewer.
