Assorted fixes and Dev branched the Matrox G100 and the PCL printer.

This commit is contained in:
OBattler
2024-07-26 00:39:11 +02:00
parent c3f3ea12a4
commit e377e58881
17 changed files with 260 additions and 13 deletions

View File

@@ -15,6 +15,10 @@
add_library(print OBJECT png.c prt_cpmap.c prt_escp.c prt_text.c prt_ps.c)
if(PCL)
target_compile_definitions(print PRIVATE USE_PCL)
endif()
if(APPLE)
find_library(GHOSTSCRIPT_LIB gs)
if (NOT GHOSTSCRIPT_LIB)

View File

@@ -411,6 +411,7 @@ ps_init(void *lpt)
return dev;
}
#ifdef USE_PCL
static void *
pcl_init(void *lpt)
{
@@ -459,6 +460,7 @@ pcl_init(void *lpt)
return dev;
}
#endif
static void
ps_close(void *priv)
@@ -491,6 +493,7 @@ const lpt_device_t lpt_prt_ps_device = {
.read_ctrl = NULL
};
#ifdef USE_PCL
const lpt_device_t lpt_prt_pcl_device = {
.name = "Generic PCL5e Printer",
.internal_name = "pcl",
@@ -502,3 +505,4 @@ const lpt_device_t lpt_prt_pcl_device = {
.read_status = ps_read_status,
.read_ctrl = NULL
};
#endif