mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 14:53:40 +00:00
[CONSRV] Trivially implement TuiSetCodePage(). CORE-17601
This commit is contained in:
parent
9f201d462d
commit
1ffe431827
1 changed files with 11 additions and 3 deletions
|
@ -1131,9 +1131,17 @@ static BOOL NTAPI
|
||||||
TuiSetCodePage(IN OUT PFRONTEND This,
|
TuiSetCodePage(IN OUT PFRONTEND This,
|
||||||
UINT CodePage)
|
UINT CodePage)
|
||||||
{
|
{
|
||||||
// TODO: Find a suitable console font for the given code page,
|
// PTUI_CONSOLE_DATA TuiData = This->Context;
|
||||||
// and set it if found; otherwise fail the call, or fall back
|
|
||||||
// to some default font...
|
// TODO: Verify that the console is the visible one.
|
||||||
|
// Only then can we change the output code page font.
|
||||||
|
|
||||||
|
if (!TuiSetConsoleOutputCP(ConsoleDeviceHandle, CodePage))
|
||||||
|
{
|
||||||
|
DPRINT1("Failed to load the font for codepage %d\n", CodePage);
|
||||||
|
/* Let's suppose the font is good enough to continue */
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue