~ubuntu-branches/ubuntu/gutsy/vnc4/gutsy

« back to all changes in this revision

Viewing changes to unix/xc/programs/Xserver/Xprint/pcl/PclCursor.c

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2006-05-15 20:35:17 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060515203517-l4lre1ku942mn26k
Tags: 4.1.1+X4.3.0-10
* Correction of critical security issue. Thanks to Martin Kogler
  <e9925248@student.tuwien.ac.at> that informed me about the issue,
  and provided the patch.
  This flaw was originally found by Steve Wiseman of intelliadmin.com.
* Applied patch from Javier Kohen <jkohen@users.sourceforge.net> that
  inform the user that only 8 first characters of the password will
  actually be used when typing more than 8 characters, closes:
  #355619.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $Xorg: PclCursor.c,v 1.3 2000/08/17 19:48:08 cpqbld Exp $ */
 
2
/*******************************************************************
 
3
**
 
4
**    *********************************************************
 
5
**    *
 
6
**    *  File:          PclCursor.c
 
7
**    *
 
8
**    *  Contents:
 
9
**    *                 Cursor-handling code for the PCL DDX driver
 
10
**    *
 
11
**    *  Created:       1/18/96
 
12
**    *
 
13
**    *********************************************************
 
14
** 
 
15
********************************************************************/
 
16
/*
 
17
(c) Copyright 1996 Hewlett-Packard Company
 
18
(c) Copyright 1996 International Business Machines Corp.
 
19
(c) Copyright 1996 Sun Microsystems, Inc.
 
20
(c) Copyright 1996 Novell, Inc.
 
21
(c) Copyright 1996 Digital Equipment Corp.
 
22
(c) Copyright 1996 Fujitsu Limited
 
23
(c) Copyright 1996 Hitachi, Ltd.
 
24
 
 
25
Permission is hereby granted, free of charge, to any person obtaining a copy
 
26
of this software and associated documentation files (the "Software"), to deal
 
27
in the Software without restriction, including without limitation the rights
 
28
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 
29
copies of the Software, and to permit persons to whom the Software is
 
30
furnished to do so, subject to the following conditions:
 
31
 
 
32
The above copyright notice and this permission notice shall be included in
 
33
all copies or substantial portions of the Software.
 
34
 
 
35
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 
36
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
37
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 
38
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
 
39
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 
40
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
41
 
 
42
Except as contained in this notice, the names of the copyright holders shall
 
43
not be used in advertising or otherwise to promote the sale, use or other
 
44
dealings in this Software without prior written authorization from said
 
45
copyright holders.
 
46
*/
 
47
/* $XFree86: xc/programs/Xserver/Xprint/pcl/PclCursor.c,v 1.4 2001/01/17 22:36:30 dawes Exp $ */
 
48
 
 
49
#include <stdio.h>
 
50
 
 
51
#include "Pcl.h"
 
52
#include "gcstruct.h"
 
53
#include "windowstr.h"
 
54
 
 
55
void
 
56
PclConstrainCursor(
 
57
     ScreenPtr pScreen,
 
58
     BoxPtr pBox)
 
59
{
 
60
}
 
61
 
 
62
void
 
63
PclCursorLimits(
 
64
     ScreenPtr pScreen,
 
65
     CursorPtr pCursor,
 
66
     BoxPtr pHotBox,
 
67
     BoxPtr pTopLeftBox)
 
68
{
 
69
}
 
70
 
 
71
Bool
 
72
PclDisplayCursor(
 
73
     ScreenPtr pScreen,
 
74
     CursorPtr pCursor)
 
75
{
 
76
    return True;
 
77
}
 
78
 
 
79
Bool
 
80
PclRealizeCursor(
 
81
     ScreenPtr pScreen,
 
82
     CursorPtr pCursor)
 
83
{
 
84
    return True;
 
85
}
 
86
 
 
87
Bool
 
88
PclUnrealizeCursor(
 
89
     ScreenPtr pScreen,
 
90
     CursorPtr pCursor)
 
91
{
 
92
    return True;
 
93
}
 
94
 
 
95
void
 
96
PclRecolorCursor(
 
97
     ScreenPtr pScreen,
 
98
     CursorPtr pCursor,
 
99
     Bool displayed)
 
100
{
 
101
}
 
102
 
 
103
Bool
 
104
PclSetCursorPosition(
 
105
     ScreenPtr pScreen,
 
106
     int x,
 
107
     int y,
 
108
     Bool generateEvent)
 
109
{
 
110
    return True;
 
111
}