Changeset 28a5ebd in mainline for kernel/genarch/src/drivers/ega/ega.c
- Timestamp:
- 2020-06-18T15:39:50Z (4 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ce52c333
- Parents:
- 4f663f3e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/drivers/ega/ega.c
r4f663f3e r28a5ebd 71 71 } ega_instance_t; 72 72 73 static void ega_put wchar(outdev_t *, wchar_t);73 static void ega_putuchar(outdev_t *, char32_t); 74 74 static void ega_redraw(outdev_t *); 75 75 76 76 static outdev_operations_t egadev_ops = { 77 .write = ega_put wchar,77 .write = ega_putuchar, 78 78 .redraw = ega_redraw, 79 79 .scroll_up = NULL, … … 81 81 }; 82 82 83 static uint16_t ega_oem_glyph(const wchar_t ch)84 { 85 if ( (ch >= 0x0000) && (ch <= 0x007f))83 static uint16_t ega_oem_glyph(const char32_t ch) 84 { 85 if (ch <= 0x007f) 86 86 return ch; 87 87 … … 515 515 } 516 516 517 static void ega_display_wchar(ega_instance_t *instance, wchar_t ch)517 static void ega_display_wchar(ega_instance_t *instance, char32_t ch) 518 518 { 519 519 uint16_t index = ega_oem_glyph(ch); … … 538 538 } 539 539 540 static void ega_put wchar(outdev_t *dev, wchar_t ch)540 static void ega_putuchar(outdev_t *dev, char32_t ch) 541 541 { 542 542 ega_instance_t *instance = (ega_instance_t *) dev->data;
Note:
See TracChangeset
for help on using the changeset viewer.