...
original commit: b55960e00216c5d466e27ce1a4d397b7121c1e81
This commit is contained in:
parent
f559fe21ae
commit
4c67147ae4
|
@ -34,7 +34,7 @@
|
|||
(define-values (get-unlock-bitmap) (load-bitmap "unlock.gif" 'gif))
|
||||
|
||||
(define get-autowrap-bitmap (load-icon "return.xbm" 'xbm))
|
||||
(define get-paren-highlight-bitmap (load-icon "paren.xbm" 'xbm))
|
||||
(define get-paren-highlight-bitmap (load-icon "paren.bmp" 'bmp))
|
||||
|
||||
(define (make-get/mask filename type)
|
||||
(let ([icon #f]
|
||||
|
|
|
@ -218,14 +218,16 @@
|
|||
[b/w-bitmap (rectangle-b/w-bitmap rectangle)]
|
||||
[color (let* ([rc (rectangle-color rectangle)]
|
||||
[tmpc (make-object color% 0 0 0)])
|
||||
(if rc
|
||||
(begin (send dc try-color rc tmpc)
|
||||
(and (<= (max (abs (- (send rc red) (send tmpc red)))
|
||||
(abs (- (send rc blue) (send tmpc blue)))
|
||||
(abs (- (send rc green) (send tmpc green))))
|
||||
50)
|
||||
rc))
|
||||
rc))]
|
||||
(and
|
||||
#f
|
||||
(if rc
|
||||
(begin (send dc try-color rc tmpc)
|
||||
(and (<= (max (abs (- (send rc red) (send tmpc red)))
|
||||
(abs (- (send rc blue) (send tmpc blue)))
|
||||
(abs (- (send rc green) (send tmpc green))))
|
||||
50)
|
||||
rc))
|
||||
rc)))]
|
||||
[first-number (lambda (x y) (if (number? x) x y))]
|
||||
[left (max left-margin (first-number (rectangle-left rectangle) view-x))]
|
||||
[top (max top-margin (rectangle-top rectangle))]
|
||||
|
|
Loading…
Reference in New Issue
Block a user