fix game card-layout method to call correct method

svn: r12473
This commit is contained in:
Matthew Flatt 2008-11-17 17:05:49 +00:00
parent b8687f7957
commit 28ff8eca7e

View File

@ -719,8 +719,8 @@
(unless (null? cards)
(let-values ([(x y w h) (send pb get-region-box r)]
[(len) (sub1 (length cards))]
[(cw ch) (values (send (car cards) get-width)
(send (car cards) get-height))])
[(cw ch) (values (send (car cards) card-width)
(send (car cards) card-height))])
(let* ([pretty (lambda (cw) (+ (* (add1 len) cw) (* len PRETTY-CARD-SEP-AMOUNT)))]
[pw (pretty cw)]
[ph (pretty ch)])