;;;; Programer: Kevin M. Rosenberg
;;;; Date Started: 1 Nov 2001
;;;;
-;;;; $Id: io-clim.lisp,v 1.4 2002/11/08 10:31:59 kevin Exp $
+;;;; $Id: io-clim.lisp,v 1.8 2003/04/01 18:07:35 kevin Exp $
;;;;
;;;; This file is Copyright (c) 2001-2002 by Kevin M. Rosenberg
;;;;
id name searcher eval ply strategy start-time
searcher-id eval-id)
-(defun make-gui-player (&key id name strategy searcher-id eval-id ply)
+(defun make-gui-player (&key id name strategy searcher-id eval-id (ply 0))
(let ((p (make-gui-player-struct :id id :ply ply
:name name :strategy strategy
:searcher-id searcher-id :eval-id eval-id))
record stream state)
state
(multiple-value-bind (xoff yoff)
- (convert-from-relative-to-absolute-coordinates
+ (clim::convert-from-relative-to-absolute-coordinates
stream (output-record-parent record))
(with-bounding-rectangle* (left top right bottom) record
(draw-rectangle* stream
(+ label-height (* cell-height i)
half-cell-inner-height))
:align-x :left :align-y :center))
- (stream-set-cursor-position stream label-width label-height)
+ (if (find-package 'mcclim)
+ (setf (stream-set-cursor-position stream)
+ (values label-width label-height))
+ (stream-set-cursor-position stream label-width label-height))
(surrounding-output-with-border (stream)
(formatting-table (stream :y-spacing 0 :x-spacing 0)
(dotimes (row 8)