~ubuntu-branches/ubuntu/hardy/ghostscript/hardy

« back to all changes in this revision

Viewing changes to src/gdevsnfb.c

  • Committer: Bazaar Package Importer
  • Author(s): Till Kamppeter
  • Date: 2007-11-22 12:17:43 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20071122121743-cd70s3ypq0r243mp
Tags: 8.61.dfsg.1-0ubtuntu1
* New upstream release
  o Final 8.61 release
* debian/patches/09_ijs_krgb_support.dpatch: Adapted to upstream changes.
* debian/rules: Updated CUPS-related variables for "make install" calls.
* debian/rules: Remove /usr/include/ghostscript from the ghostscript
  package, they go into lings-dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
   San Rafael, CA  94903, U.S.A., +1(415)492-9861, for further information.
12
12
*/
13
13
 
14
 
/* $Id: gdevsnfb.c 8022 2007-06-05 22:23:38Z giles $*/
 
14
/* $Id: gdevsnfb.c 8250 2007-09-25 13:31:24Z giles $*/
15
15
/* Sony News frame buffer driver for GhostScript */
16
16
#include "gdevprn.h"
17
17
#define prn_dev ((gx_device_printer *)dev) /* needed in 5.31 et seq */
22
22
#include <newsiop/framebuf.h>
23
23
 
24
24
/* The device descriptor */
25
 
private dev_proc_open_device(sonyfb_open);
26
 
private dev_proc_output_page(sonyfb_output_page);
27
 
private dev_proc_close_device(sonyfb_close);
28
 
private gx_device_procs sonyfb_procs =
 
25
static dev_proc_open_device(sonyfb_open);
 
26
static dev_proc_output_page(sonyfb_output_page);
 
27
static dev_proc_close_device(sonyfb_close);
 
28
static gx_device_procs sonyfb_procs =
29
29
  prn_procs(sonyfb_open, sonyfb_output_page, sonyfb_close);
30
30
const gx_device_printer far_data gs_sonyfb_device =
31
31
  prn_device(sonyfb_procs, "sonyfb",
36
36
        0,0,0,0,                        /* margins */
37
37
        1, 0);
38
38
 
39
 
private int fb_file = -1;
 
39
static int fb_file = -1;
40
40
sPrimRect prect;
41
41
 
42
 
private int
 
42
static int
43
43
sonyfb_open(gx_device *dev)
44
44
{
45
45
  sScrType stype;
56
56
  return gdev_prn_open(dev);
57
57
}
58
58
 
59
 
private int
 
59
static int
60
60
sonyfb_close(gx_device *dev)
61
61
{
62
62
  if(fb_file >= 0)
70
70
#define FRAME_WIDTH     1024
71
71
 
72
72
/* Send the page to the printer. */
73
 
private int
 
73
static int
74
74
sonyfb_output_page(gx_device *dev, int num_copies, int flush)
75
75
{
76
76
  int l, i, byte_width, height;