Comments (2)
CUPS.org User: mike
Fix applied to CVS, less the change to the location of the header file (which is the correct system location)
from cups.
"espgs.diff":
--- src/gdevsppr.c.orig 2003-04-10 15:14:40.268724000 -0400
+++ src/gdevsppr.c 2003-04-10 15:16:30.117539000 -0400
@@ -20,7 +20,8 @@
#include <stdio.h>
#include <sys/types.h>
#include <sys/ioccom.h>
-#include <unbdev/lpviio.h>
+#include <unistd.h>
+#include "lpviio.h"
/*
Thanks to Martin Schulte ([email protected]) for contributing
@@ -124,10 +125,10 @@
lpvipage.bitmap_width=gdev_mem_bytes_per_scan_line((gx_device _)pdev);
lpvipage.page_width=lpvipage.bitmap_width_8;
lpvipage.page_length=pdev->height;
- lpvipage.resolution = (pdev->x_pixels_per_inch == 300 ? DPI300 : DPI400);
- lpvipage.resolution = (pdev->x_pixels_per_inch == 300 ? 300 : 400);
if (ioctl(fileno(prn),LPVIIOC_SETPAGE,&lpvipage)!=0)
{ - errprintf(sparc_print_page: LPVIIOC_SETPAGE failed\n");
- errprintf("sparc_print_page: LPVIIOC_SETPAGE failed\n");
return -1;
}
out_size=lpvipage.bitmap_width*lpvipage.page_length;
@@ -137,7 +138,7 @@
{
if (ioctl(fileno(prn),LPVIIOC_GETERR,&lpvierr)!=0)
{ -
errprintf(sparc_print_page: LPVIIOC_GETERR failed\n");
-
return -1;
errprintf("sparc_print_page: LPVIIOC_GETERR failed\n");
}
switch (lpvierr.err_type)
from cups.
Related Issues (20)
- HP Laser 107A - cups not recognized
- Which Cups printer driver to print various formats
- Cups Mitsubishi CP-D70DW HOT 3
- What are the alternatives with RAW queues being deprecated? HOT 1
- Xprinter420B(usb) filter failed error(os -- armbian)
- Printing with Epson TM-T82X
- Memory leak in libcups.so.2 HOT 1
- Printing with cups not possible any more after system upgrade in Debian HOT 4
- How to modify the current printer data?
- Connect to cups server (which has basic authentication enabled) using pycups library
- webui falls back to :631 when accessed remotely via port forwarding
- How to get a list of canceled or successful print jobs? HOT 1
- Mac OSX standard cups 2.3.1, can't load cups.css
- printer gets unavailable after ios17 update
- finding printer-state-reasons values documentation
- Missing HttpOnly Cookie Attribute (HTTP)
- After upgrading to iOS17 Password required for "(null)"
- Attribute Group contains more than one 'printer-supply-description`
- CUPS Not listening
- Faisal
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cups.