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:
Andrea
2025-09-28 22:00:00 +01:00
committed by GitHub
parent 0128c57fab
commit 2081116322
2 changed files with 3 additions and 2 deletions

View File

@@ -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;
}