fix region use in card-game library
This commit is contained in:
parent
61788d68d5
commit
ff90587223
|
@ -14,8 +14,8 @@
|
|||
(define prev-region-dc #f)
|
||||
|
||||
(define (with-card-region dc x y width height thunk)
|
||||
(let ([rs (if (eq? prev-region-dc dc)
|
||||
prev-regions
|
||||
(let ([rs (if #f ; (eq? prev-region-dc dc) <- assumes the same xform matrix
|
||||
prev-regions
|
||||
(cons (make-object mred:region% dc)
|
||||
(make-object mred:region% dc)))])
|
||||
(set! prev-regions rs)
|
||||
|
|
Loading…
Reference in New Issue
Block a user