~ubuntu-branches/ubuntu/oneiric/ghostscript/oneiric

« back to all changes in this revision

Viewing changes to base/gdevevga.c

  • Committer: Bazaar Package Importer
  • Author(s): Till Kamppeter
  • Date: 2011-07-15 16:49:55 UTC
  • mfrom: (1.1.23 upstream)
  • Revision ID: james.westby@ubuntu.com-20110715164955-uga6qibao6kez05c
Tags: 9.04~dfsg~20110715-0ubuntu1
* New upstream release
   - GIT snapshot from Jult, 12 2011.
* debian/patches/020110406~a54df2d.patch,
  debian/patches/020110408~0791cc8.patch,
  debian/patches/020110408~507cbee.patch,
  debian/patches/020110411~4509a49.patch,
  debian/patches/020110412~78bb9a6.patch,
  debian/patches/020110418~a05ab8a.patch,
  debian/patches/020110420~20b6c78.patch,
  debian/patches/020110420~4ddefa2.patch: Removed upstream patches.
* debian/rules: Generate ABI version number (variable "abi") correctly,
  cutting off repackaging and pre-release parts.
* debian/rules: Added ./lcms2/ directory to DEB_UPSTREAM_REPACKAGE_EXCLUDES.
* debian/copyright: Added lcms2/* to the list of excluded files.
* debian/symbols.common: Updated for new upstream source. Applied patch
  which dpkg-gensymbols generated for debian/libgs9.symbols to this file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Copyright (C) 2001-2006 Artifex Software, Inc.
2
2
   All Rights Reserved.
3
 
  
 
3
 
4
4
   This software is provided AS-IS with no warranty, either express or
5
5
   implied.
6
6
 
10
10
   or contact Artifex Software, Inc.,  7 Mt. Lassen Drive - Suite A-134,
11
11
   San Rafael, CA  94903, U.S.A., +1(415)492-9861, for further information.
12
12
*/
13
 
/* $Id: gdevevga.c 8022 2007-06-05 22:23:38Z giles $ */
 
13
/* $Id$ */
14
14
/* IBM PC EGA and VGA display drivers */
15
15
/* All of the real code is in gdevpcfb.c. */
16
16
#include "memory_.h"
44
44
    regs.h.bh = 0;
45
45
    int86(0x10, &regs, &regs);
46
46
    switch (regs.rshort.cx) {
47
 
        case 0x08:
48
 
            pbs->text_font = 0x1112;
49
 
            break;              /* 8 x 8 */
50
 
        case 0x10:
51
 
            pbs->text_font = 0x1114;
52
 
            break;              /* 8 x 16 */
53
 
        default:
54
 
            pbs->text_font = 0x1111;    /* 8 x 14 */
 
47
        case 0x08:
 
48
            pbs->text_font = 0x1112;
 
49
            break;              /* 8 x 8 */
 
50
        case 0x10:
 
51
            pbs->text_font = 0x1114;
 
52
            break;              /* 8 x 16 */
 
53
        default:
 
54
            pbs->text_font = 0x1111;    /* 8 x 14 */
55
55
    }
56
56
    regs.h.ah = 0x8;
57
57
    regs.h.bh = pbs->text_page;
61
61
    regs.rshort.ax = 0x1a00;
62
62
    int86(0x10, &regs, &regs);
63
63
    if (regs.h.al == 0x1a && regs.h.bl == 0x8) {
64
 
        regs.rshort.ax = 0x1008;
65
 
        int86(0x10, &regs, &regs);
66
 
        pbs->border_color = regs.h.bh;
 
64
        regs.rshort.ax = 0x1008;
 
65
        int86(0x10, &regs, &regs);
 
66
        pbs->border_color = regs.h.bh;
67
67
    }
68
68
    if (pbs->display_mode != 3) {
69
 
        pbs->display_mode = 3;
70
 
        pbs->text_font = 0x1112;
71
 
        pbs->text_cursor_mode = 0x0607;
72
 
        pbs->text_attribute = 7;
73
 
        pbs->text_page = 0;
 
69
        pbs->display_mode = 3;
 
70
        pbs->text_font = 0x1112;
 
71
        pbs->text_cursor_mode = 0x0607;
 
72
        pbs->text_attribute = 7;
 
73
        pbs->text_page = 0;
74
74
    }
75
75
}
76
76