Changeset b433f68 in mainline for uspace/app/fontedit/fontedit.c
- Timestamp:
- 2021-02-26T16:23:36Z (4 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 77ffa01
- Parents:
- fe40b67
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/fontedit/fontedit.c
rfe40b67 rb433f68 446 446 * @param fedit Font editor 447 447 * @param x Starting X coordinate 448 * @Param y Starting Y coordinate 448 * @param y Starting Y coordinate 449 * @param color Color 449 450 * @param str String 450 451 */ 451 452 static errno_t font_edit_paint_preview_str(font_edit_t *fedit, 452 gfx_coord_t x, gfx_coord_t y, const char *str)453 gfx_coord_t x, gfx_coord_t y, gfx_color_t *color, const char *str) 453 454 { 454 455 gfx_text_fmt_t fmt; … … 456 457 457 458 gfx_text_fmt_init(&fmt); 459 fmt.color = color; 458 460 459 461 pos.x = x; … … 480 482 goto error; 481 483 482 rc = font_edit_paint_preview_str(fedit, 20, 20, 484 rc = font_edit_paint_preview_str(fedit, 20, 20, color, 483 485 "ABCDEFGHIJKLMNOPQRSTUVWXYZ"); 484 486 if (rc != EOK) 485 487 goto error; 486 488 487 rc = font_edit_paint_preview_str(fedit, 20, 40, 489 rc = font_edit_paint_preview_str(fedit, 20, 40, color, 488 490 "THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG"); 489 491 if (rc != EOK) 490 492 goto error; 491 493 492 rc = font_edit_paint_preview_str(fedit, 20, 60, 494 rc = font_edit_paint_preview_str(fedit, 20, 60, color, 493 495 "abcdefghijklmnopqrstuvwxyz"); 494 496 if (rc != EOK) 495 497 goto error; 496 498 497 rc = font_edit_paint_preview_str(fedit, 20, 80, 499 rc = font_edit_paint_preview_str(fedit, 20, 80, color, 498 500 "the quick brown fox jumps over the lazy dog"); 499 501 if (rc != EOK) 500 502 goto error; 501 503 502 rc = font_edit_paint_preview_str(fedit, 20, 100, 504 rc = font_edit_paint_preview_str(fedit, 20, 100, color, 503 505 "0123456789,./<>?;'\\:\"|[]{}`~!@#$%^&*()-_=+"); 504 506 if (rc != EOK)
Note:
See TracChangeset
for help on using the changeset viewer.