mirror of
https://github.com/AppleWin/AppleWin.git
synced 2026-01-22 14:17:03 +00:00
A couple of changes from the linux branch. (PR #1437)
* Fix printf format spec. * A fix from the MacOS build. --------- Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
@@ -77,13 +77,14 @@ void ParallelPrinterCard::ClosePrint(void)
|
||||
{
|
||||
fclose(m_file);
|
||||
m_file = NULL;
|
||||
#ifdef _WIN32
|
||||
std::string ExtendedFileName = "copy \"";
|
||||
ExtendedFileName.append (ParallelPrinterCard::GetFilename());
|
||||
ExtendedFileName.append ("\" prn");
|
||||
//if (g_bDumpToPrinter) ShellExecute(NULL, "print", Printer_GetFilename(), NULL, NULL, 0); //Print through Notepad
|
||||
if (m_bDumpToPrinter)
|
||||
system (ExtendedFileName.c_str ()); //Print through console. This is supposed to be the better way, because it shall print images (with older printers only).
|
||||
|
||||
#endif
|
||||
}
|
||||
m_inactivity = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user