Windows: avoid refresh on no-op canvas show-scrollbars
This commit is contained in:
parent
d3f212b98c
commit
c4793a218f
|
@ -401,6 +401,10 @@
|
||||||
(define h-scroll-visible? hscroll?)
|
(define h-scroll-visible? hscroll?)
|
||||||
(define v-scroll-visible? vscroll?)
|
(define v-scroll-visible? vscroll?)
|
||||||
(define/public (show-scrollbars h? v?)
|
(define/public (show-scrollbars h? v?)
|
||||||
|
(unless (and (equal? h-scroll-visible?
|
||||||
|
(and h? hscroll? #t))
|
||||||
|
(equal? v-scroll-visible?
|
||||||
|
(and v? vscroll? #t)))
|
||||||
(when hscroll?
|
(when hscroll?
|
||||||
(atomically
|
(atomically
|
||||||
(set! h-scroll-visible? (and h? #t))
|
(set! h-scroll-visible? (and h? #t))
|
||||||
|
@ -409,7 +413,7 @@
|
||||||
(atomically
|
(atomically
|
||||||
(set! v-scroll-visible? (and v? #t))
|
(set! v-scroll-visible? (and v? #t))
|
||||||
(ShowScrollBar canvas-hwnd SB_VERT v?)))
|
(ShowScrollBar canvas-hwnd SB_VERT v?)))
|
||||||
(reset-dc))
|
(reset-dc)))
|
||||||
|
|
||||||
(define/override (do-set-scrollbars h-step v-step
|
(define/override (do-set-scrollbars h-step v-step
|
||||||
h-len v-len
|
h-len v-len
|
||||||
|
|
Loading…
Reference in New Issue
Block a user