This file is indexed.

/usr/share/common-lisp/source/mcclim/Backends/OpenGL/opengl-x-graft.lisp is in cl-mcclim 0.9.6.dfsg.cvs20100315-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
;;; -*- Mode: Lisp; Package: CLIM-INTERNALS -*-

;;;  (c) copyright 2001 by Julien Boninfante (boninfan@emi.u-bordeaux.fr)

;;; This library is free software; you can redistribute it and/or
;;; modify it under the terms of the GNU Library General Public
;;; License as published by the Free Software Foundation; either
;;; version 2 of the License, or (at your option) any later version.
;;;
;;; This library is distributed in the hope that it will be useful,
;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
;;; Library General Public License for more details.
;;;
;;; You should have received a copy of the GNU Library General Public
;;; License along with this library; if not, write to the 
;;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, 
;;; Boston, MA  02111-1307  USA.

(in-package :CLIM-INTERNALS)

;;; OPENGL-GRAFT class

(defclass opengl-graft (graft)
  ()
  )

(defmethod graft-width ((graft opengl-graft) &key (units :device))
  (let ((screen (opengl-port-screen (port graft))))
    (ecase units
      (:device (xlib-gl:screen-width screen))
      (:inches (/ (xlib-gl:screen-mwidth screen) 25.4s0))
      (:millimeters (xlib-gl:screen-mwidth screen))
      (:screen-sized 1))))

(defmethod graft-height ((graft opengl-graft) &key (units :device))
  (let ((screen (opengl-port-screen (port graft))))
    (ecase units
      (:device (xlib-gl:screen-height screen))
      (:inches (/ (xlib-gl:screen-mheight screen) 25.4s0))
      (:millimeters (xlib-gl:screen-mheight screen))
      (:screen-sized 1))))

#+nil
(defmethod graft-pixels-per-millimeter ((graft opengl-graft))
  (let ((screen (opengl-port-screen (port graft))))
    (/ (xlib-gl:screen-width screen)
       (xlib-gl:screen-mwidth screen))))

#+nil
(defmethod graft-pixels-per-inch ((graft opengl-graft))
  (* (graft-pixels-per-millimeter graft) 25.4s0))