patzy/glop — Issue #11: None correct type handling for slot 'rate of x11-video-mode structure
Author: LinkFly
Created: 2012-01-06 01:12:23+00:00
State: open

Slot 'rate in x11-video-mode structure type is double-float, but not correct handling this fact.
For correct working i changed this code:
(defmethod set-video-mode ((mode x11-video-mode))
(glop-xlib::with-current-display dpy
(glop-xlib::set-mode dpy 0 (x11-video-mode-index mode)
(x11-video-mode-rate mode))))

on it:

(defmethod set-video-mode ((mode x11-video-mode))
(glop-xlib::with-current-display dpy
(glop-xlib::set-mode dpy 0 (x11-video-mode-index mode)
(truncate (x11-video-mode-rate mode)))))

And also two call make-x11-video-mode:

(make-x11-video-mode
...
:rate rate
...)

Changed to:

(make-x11-video-mode
...
:rate (coerce rate 'double-float)
...)

Please analyzed bug report