Added Printer devices to LPT ports. These are the Generic Text printer and a Epson ESC/P dot-matrix compatible printer.

Also added is the printing output to PNG.
This commit is contained in:
TC1995
2018-11-04 23:35:28 +01:00
parent 3eaae2a08b
commit 003944f137
11 changed files with 3565 additions and 2 deletions

View File

@@ -431,6 +431,25 @@ plat_get_exe_name(wchar_t *s, int size)
GetModuleFileName(hinstance, s, size);
}
void
plat_tempfile(wchar_t *bufp, wchar_t *prefix, wchar_t *suffix)
{
SYSTEMTIME SystemTime;
char temp[1024];
if (prefix != NULL)
sprintf(temp, "%ls-", prefix);
else
strcpy(temp, "");
GetSystemTime(&SystemTime);
sprintf(&temp[strlen(temp)], "%d%02d%02d-%02d%02d%02d-%03d%ls",
SystemTime.wYear, SystemTime.wMonth, SystemTime.wDay,
SystemTime.wHour, SystemTime.wMinute, SystemTime.wSecond,
SystemTime.wMilliseconds,
suffix);
mbstowcs(bufp, temp, strlen(temp)+1);
}
int
plat_getcwd(wchar_t *bufp, int max)