Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
clx
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alastair Bridgewater
clx
Commits
0ec96edb
Commit
0ec96edb
authored
22 years ago
by
dan
Browse files
Options
Downloads
Patches
Plain Diff
cursor hotspots should not be negative
darcs-hash:20030221164832-2591e-d59f12e828813a312fe9868a8b2bb8d4d6459748.gz
parent
e0d7c15f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README
+1
-3
1 addition, 3 deletions
README
test/image.lisp
+6
-4
6 additions, 4 deletions
test/image.lisp
with
7 additions
and
7 deletions
README
+
1
−
3
View file @
0ec96edb
...
...
@@ -41,9 +41,7 @@ better yet, the USE option to DEFPACKAGE
= Known problems:
1) tests/image.lisp seems not to work. "On the other hand, it also
seems broken under CMUCL, so it might be something like the current
colour depth."
(none reported)
= Bug reports, new features, patches
...
...
This diff is collapsed.
Click to expand it.
test/image.lisp
+
6
−
4
View file @
0ec96edb
...
...
@@ -92,8 +92,10 @@
(
image-z
:z-pixmap
)))
(
image
(
get-image
window
:x
x
:y
y
:width
width
:height
height
:format
format
:result-type
result-type
)))
(
setf
(
image-x-hot
image
)
(
-
x
))
(
setf
(
image-y-hot
image
)
(
-
y
))
;; XCreatePixmapCursor(3X11) says that x,y for hotspot are
;; unsigned, so what we're doing here I don't know
;;(setf (image-x-hot image) (- x))
;;(setf (image-y-hot image) (- y))
image
))
(
defun
image-test-subimage-parameters
(
image
random-subimage-p
)
...
...
@@ -125,8 +127,8 @@
(
multiple-value-bind
(
src-x
src-y
width
height
)
(
image-test-subimage-parameters
image
random-subimage-p
)
(
let*
((
border-width
1
)
(
x
(
-
src-x
(
image-x-hot
image
)
border-width
))
(
y
(
-
src-y
(
image-y-hot
image
)
border-width
)))
(
x
(
-
src-x
#+
nil
(
image-x-hot
image
)
border-width
))
(
y
(
-
src-y
#+
nil
(
image-y-hot
image
)
border-width
)))
(
unless
(
or
(
zerop
width
)
(
zerop
height
))
(
let
((
window
(
create-window
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment