diff options
author | Alexis211 <alexis211@gmail.com> | 2009-08-29 19:03:00 +0200 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2009-08-29 19:03:00 +0200 |
commit | 9ad8e2fe0242da26dae7fca2b180640637c8c062 (patch) | |
tree | 92fdd3f2195221a110d2c4f1f2e98bd6505578ed /Source/Kernel/DeviceManager | |
parent | 0139012d683036fb661fed62babb71f59ec9ab45 (diff) | |
download | Melon-9ad8e2fe0242da26dae7fca2b180640637c8c062.tar.gz Melon-9ad8e2fe0242da26dae7fca2b180640637c8c062.zip |
We now have (partial) support for UTF-8.
Diffstat (limited to 'Source/Kernel/DeviceManager')
-rw-r--r-- | Source/Kernel/DeviceManager/Disp.ns.cpp | 2 | ||||
-rw-r--r-- | Source/Kernel/DeviceManager/Disp.ns.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Source/Kernel/DeviceManager/Disp.ns.cpp b/Source/Kernel/DeviceManager/Disp.ns.cpp index 8db9503..a59b27c 100644 --- a/Source/Kernel/DeviceManager/Disp.ns.cpp +++ b/Source/Kernel/DeviceManager/Disp.ns.cpp @@ -12,7 +12,7 @@ u16int textRows() { return mode.textRows; } -void putChar(u16int line, u16int col, char c, u8int color) { +void putChar(u16int line, u16int col, wchar c, u8int color) { if (line >= mode.textRows or col >= mode.textCols) return; mode.device->putChar(line, col, c, color); } diff --git a/Source/Kernel/DeviceManager/Disp.ns.h b/Source/Kernel/DeviceManager/Disp.ns.h index a815836..e6c378b 100644 --- a/Source/Kernel/DeviceManager/Disp.ns.h +++ b/Source/Kernel/DeviceManager/Disp.ns.h @@ -2,6 +2,7 @@ #define DEF_DISP_NS_H #include <Devices/Display/Display.proto.h> +#include <Library/wchar.class.h> namespace Disp { struct mode_t { @@ -11,7 +12,7 @@ namespace Disp { u16int textCols(); u16int textRows(); - void putChar(u16int line, u16int col, char c, u8int color); + void putChar(u16int line, u16int col, wchar c, u8int color); void moveCursor(u16int line, u16int col); void clear(); |